Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,n,p=0;
- printf("Ile liczb: ");
- scanf("%d",&n);
- for (int i=0; i<n;i++)
- {
- printf("Podaj liczbe: ");
- scanf("%d", &a);
- if (a%2==0 && a!=0)
- p++;
- }
- printf("Parzystych: %d",p);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement