Then it should give the output of that nos. which are not prime numbers. But the output is not coming only, I think the method is not running. Wat to do, pls help!!
Type: Posts; User: Ashish S
Then it should give the output of that nos. which are not prime numbers. But the output is not coming only, I think the method is not running. Wat to do, pls help!!
why we cant write "return false" in for loop itself after "else" statement????
the program is for generating prime numbers. The input would be how many prime number a user wants from the code.
...
The problem is it is still giving the output as 3 sometimes which should not be.
Kindly help me with this snippet
//CODE SNIPPET
int number1=4;
while(number1>3)
{ ...
this is the program which gives output as " number is divisible by 5 and 6" or it will give "number is divisible by 5(6)" or "not divisible by either 5 and 6".
the problem is when i entered 5 it...