pdeopura
May 27th, 2008, 01:24 AM
My program prompts the user for a number between 1 & 5.
How can I check if the user entered a number between the given range, and not a random character?
I am using fgets(...) to read the user's answer which returns a string if I am correct.
Thanks in advance!
How can I check if the user entered a number between the given range, and not a random character?
I am using fgets(...) to read the user's answer which returns a string if I am correct.
Thanks in advance!