#include <stdio.h> int main() { int n; scanf("%d",&n); int a; for(a=n;a>=1;a--) if(n%a==0) printf("%d\n",a); return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: