Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,i,count=0;
  5.  
  6.     for(i=1;i<6;i++)
  7.     {
  8.         scanf("%d",&n);
  9.         if(n%2==0)
  10.         {
  11.             count++;
  12.         }
  13.     }
  14.     printf("%d valores pares\n",count);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement