Advertisement
Josif_tepe

Untitled

Dec 1st, 2022
673
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. #include <stdlib.h>
  3.  
  4.  
  5. int main() {
  6.    
  7.     int x;
  8.     scanf("%d", &x);
  9.    
  10.     for(int i = 1; i <= x; i++) {
  11.         if(x % i == 0) {
  12.             printf("%d ", i);
  13.         }
  14.     }
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement