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