1) Lose the goto crap. Use a do while loop instead... this isn't BASIC.
2) There is no reason to check every value when doing this function...
..... a) We already know 1 and 2 are prime numbers....
Type: Posts; User: CommonTater
1) Lose the goto crap. Use a do while loop instead... this isn't BASIC.
2) There is no reason to check every value when doing this function...
..... a) We already know 1 and 2 are prime numbers....
KmsReady... Please learn how to use code tags.
http://cboard.cprogramming.com/c-programming/25765-posting-code-read-first.html
What is the value of c the second time it enters the do... while loop?