Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PRINT PRIME NUMBERS BETWEEN 1-100 USING BREAK AND CONTINUE IN C

/* Prime Number between 1-100 using Break and continue statement */

#include
#include
main()
{
int i, j;
i = 1;
while ( i sqrt(i) )
printf("%d\t", i);
++i;
}
return 0;
}



This post first appeared on ReaL TricKs, please read the originial post: here

Share the post

PRINT PRIME NUMBERS BETWEEN 1-100 USING BREAK AND CONTINUE IN C

×

Subscribe to Real Tricks

Get updates delivered right to your inbox!

Thank you for your subscription

×