Josif_tepe

Untitled

Jul 10th, 2025
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.    
  5.     int broj;
  6.     scanf("%d", &broj);
  7.    
  8.     int broj_na_deliteli = 0;
  9.    
  10.     for(int i = 1; i <= broj; i++) {
  11.         if(broj % i == 0) {
  12.             broj_na_deliteli++;
  13.         }
  14.     }
  15.    
  16.     if(broj_na_deliteli > 2) {
  17.         printf("SLOZHEN\n");
  18.     }
  19.     else {
  20.         printf("PROST\n");
  21.     }
  22.    
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment