thanks to all who replied to my previous post!
now i am trying to do this:
if (variable != int)
;
else
printf("You did not input an integer! Try again.\n");
however, i know i can't use "int" like i demonstrated in the code above. if i want to make sure that what the end user entered was indeed an int and not a decimal number, letter, symbol, or string of characters, how would i go about coding that?
thanks,
chipy
now i am trying to do this:
if (variable != int)
;
else
printf("You did not input an integer! Try again.\n");
however, i know i can't use "int" like i demonstrated in the code above. if i want to make sure that what the end user entered was indeed an int and not a decimal number, letter, symbol, or string of characters, how would i go about coding that?
thanks,
chipy