#include<iostre am.h>
int a(int,int);
void main()
{
int n,m,x;
cout<<"till what no. u want to run the program n=? \n ";
cout<<"\n also enter by which u want to divide the no.s";
cin>>n>>m;
x=a(n,m);
cout<<"factors of no.is"<<x;
}
int a(int x,int y)
viod main()
{
for(int i=1,i<=x,i++)
{
if((i%y)==0)
cout<< continue;
else
cout<<"no factors";
}
}
int a(int,int);
void main()
{
int n,m,x;
cout<<"till what no. u want to run the program n=? \n ";
cout<<"\n also enter by which u want to divide the no.s";
cin>>n>>m;
x=a(n,m);
cout<<"factors of no.is"<<x;
}
int a(int x,int y)
viod main()
{
for(int i=1,i<=x,i++)
{
if((i%y)==0)
cout<< continue;
else
cout<<"no factors";
}
}
Comment