Josif_tepe

Untitled

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