disallow negative numbers..
is there an exception for negative numbers?
i'm trying to create a program which takes the user's input like this:
input a positive integer: 5
System prints out "good job" after
then repeats the question until the user types 0.
I got that part working but if i input something like this:
input a positive integer: -2
System prints out "Positive integer please!" and then takes the users input again until they input a positive integer or 0, then the program will output the other statements.
i'm thinking of creating a while loop but i don't know where to put it so that the program reverts back to "input a positive integer" after the person does so instead of "Positive integer please!"
Thanks in advnace!

