Advertisement
Josif_tepe

Untitled

Aug 25th, 2023
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5.  
  6. int funkcija(int broj) {
  7.     if(broj % 2 == 0) {
  8.         return 1;
  9.     }
  10.     else {
  11.         return 0;
  12.     }
  13. }
  14.  
  15. int main(int argc, const char * argv[]) {
  16.     int broj = 5;
  17.     int a = funkcija(broj);
  18.    
  19.     printf("%d\n", a);
  20.     return 0;
  21.    
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement