Advertisement
PROFESSOR_AIH

Divisors IDivisors I

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