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