fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int i,a,b=0;
  5. for (i=0; i<5; i++)
  6. {
  7. scanf("%d",&a);
  8. if (a%2==0)
  9. b++;
  10. }
  11. printf("%d valores pares\n",b);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4440KB
stdin
Standard input is empty
stdout
0 valores pares