yah haven't learned booleans yet but learned about breaks, and ill try to get the composite then. thanks for the help.
Type: Posts; User: chachunga
yah haven't learned booleans yet but learned about breaks, and ill try to get the composite then. thanks for the help.
we haven't learned boolean flag. but ill try to do what you said.
how could i implement that into my code? should i put another if in there??
idea here is to have user input an int n and find the prime numbers between 2 and n. then print out how many prime numbers there are for example.. 2-100 = 25 prime numbers. i cant figure out whats...