Josif_tepe

Untitled

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