code
code
Last edited by SMR05; 03-05-2015 at 02:30 PM.
Don't just delete the message if you see what your problem was. Tell the others so they can learn.
I was in the process of answering your question.
Don't just delete the message if you see what your problem was. Tell the others so they can learn.
I was in the process of answering your question.
Indeed - deleting your original post is considered bad form. Regardless, I was able to find your original post, and am almost tempted to re-post your code myself.
You could improve your program greatly by putting the input and number-checking in a loop.