Friends i have little bit problem in making a c language program.
I have to make a program which prints prime numbers from 1 to 500.
I make this program but with while loop then i was told to make it using for loop, which i tried but failed.
So kindly help me. Thanks
from,
john(pakistan)
john_hasan 0 Newbie Poster
Micko 2 Junior Poster
john_hasan 0 Newbie Poster
hollystyles 113 Veteran Poster
Salem 5,199 Posting Sage
hollystyles 113 Veteran Poster
Salem 5,199 Posting Sage
shavez_israr 0 Newbie Poster
Salem 5,199 Posting Sage
hollystyles 113 Veteran Poster
hollystyles 113 Veteran Poster
iamthwee
hollystyles 113 Veteran Poster
dude543 2 Light Poster
hollystyles commented: good solution +2
Salem 5,199 Posting Sage
hollystyles commented: good feedback +2
hollystyles 113 Veteran Poster
hollystyles 113 Veteran Poster
dude543 2 Light Poster
hollystyles 113 Veteran Poster
Bench 212 Posting Pro
hollystyles 113 Veteran Poster
portege 0 Light Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
portege 0 Light Poster
WolfPack 491 Posting Virtuoso Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
portege 0 Light Poster
WolfPack 491 Posting Virtuoso Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Lerner 582 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.