Friday, August 26, 2016

uri-1065 - Even Between five Numbers

#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;
}

No comments: