#include <stdio.h>
int main(){
int i,n,p=0;
//float n;
// scanf("%d",&a);
for(i=0;i<5;i++){
scanf("%d",&n);
if (n%2==0)
p++; //count the positive number in the input value
}
printf("%d valores pares\n",p);
return 0;
}
int main(){
int i,n,p=0;
//float n;
// scanf("%d",&a);
for(i=0;i<5;i++){
scanf("%d",&n);
if (n%2==0)
p++; //count the positive number in the input value
}
printf("%d valores pares\n",p);
return 0;
}
No comments:
Post a Comment