12345678910111213141516
# include <iostream> using namespace std; int main () { int num; cout<<"Enter A Positive Integer:"; cin>>num; for(int count=1;count<=num;) { if (num%count==0) cout<<"It Is A Factor"<<endl; count=count+1; } return 0; }