Advertisement
Josif_tepe

Untitled

Sep 2nd, 2022
1,098
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. int main()
  2. {
  3. int n,broj_na_deliteli=0;
  4. scanf("%d",&n);
  5. for(int i=1;i<=n;i++)
  6. if(n%i==0){
  7.    broj_na_deliteli++;
  8. }
  9. if(broj_na_deliteli<=2)
  10.     printf("Brojot e prost");
  11. else
  12.     printf("Brojot e slozen");
  13.  
  14.    return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement