URI 1065 Solve

Solve of URI 1065 (Even Between Five Numbers) in C

#include<stdio.h>
int main(void){
    int i,n,count=0;
    for(i=1;i<=5;i++){
        scanf("%d",&n);
        if(n%2==0)
            count++;
    }
    printf("%d valores pares\n",count);
    return 0;
}

Post a Comment

Previous Post Next Post