Advertisement
Kajoj

Std15.10.22_8

Oct 22nd, 2015
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a,n,p=0;
  6.     printf("Ile liczb: ");
  7.     scanf("%d",&n);
  8.     for (int i=0; i<n;i++)
  9.     {
  10.       printf("Podaj liczbe: ");
  11.       scanf("%d", &a);
  12.       if (a%2==0 && a!=0)
  13.         p++;
  14.     }
  15.     printf("Parzystych: %d",p);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement