C & C++ language
Home
HTML
C&C++ language
Movies
Games
Softwares
Sunday, 18 November 2012
DIVISOR OF A NUMBER
#include<iostream.h>
void main()
{
int num;
cout<<"enter a number";
cin>>num;
for(int i=1;i<=num/2;i++)
{
if(num%i==0)
cout<<"\n"<<i;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment