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