Advertisement
Josif_tepe

Untitled

Mar 29th, 2022
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4.  
  5. int main() {
  6.    
  7.     int x;
  8.     scanf("%d", &x);
  9.    
  10.     for(int i = 1; i <= x; i += 1) {
  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