First Please Subscribe Our Channel Click Here For Subscribe
Close
C PROGRAMMING WORLD
BY SUNIL KUMAR DHEENDHWAL
Pages
INDEX
Home
INSTALING STEPS OF TURBO
How To Start Programming With C
HOW TO EARN MONEY ONLINE
Find Us On Facebook
WAP To Print prime numbers between 1 to 100
void main()
{
int i,j;
clrscr();
for(i=1; i<=100; i++)
{
for(j=2;j<=i;j++)
{
if(i%j==0)
break;
}
if(i==j)
printf("%d ",i);
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment