Advertisement
dsdeep

Task-1.5

Feb 28th, 2020
176
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 a,i;
  5.     scanf("%d",&a);
  6.     for(i=a;i>=1;i--)
  7.     {
  8.         if(a%i==0)
  9.         printf("%d\n",i);
  10.     }
  11.     return 0;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement