User profile: pnoid

User info
User name:pnoid
Number of posts:107
Latest posts:

prime number
Oh yeah, because it's an if else statement, so the for loop never executes more than once. It compar...

prime number
Your problem is here: [code]for(i=2;i<number;i++)[/code] i = 2 number = 2 2 is not less than 2 the f...

wrong input handling
Probably be better to use a [code]do while[/code] loop or a recursive function for this, but about y...

How to apply what ive learned
This helped me when I was starting out.

count and position
There's tons of ways to do it. If you can't use the string class you can do it with char arrays. If...