Advertisement
Josif_tepe

Untitled

Nov 22nd, 2023
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int funckija(int n) {
  4.     int brojac = 0;
  5.     while(scanf("%d", &n)) {
  6.         if(n % 2 == 0) {
  7.             brojac++;
  8.         }
  9.     }
  10.     return brojac;
  11. }
  12. int main() {
  13.     int n;
  14.     scanf("%d", &n);
  15.  
  16.    
  17.     printf("%d\n", funckija(n));
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement