Consider the following situation:
Problem with that ^^^.....The user (who is stupid) will and I knw, WILL, put in letters when it specifically asks for numbers.Code:printf("Please enter a number: "); scanf("%d",&num");
So my question...Is there anyway to force the user into only entering numbers besides using a loop until the user puts an int??
Kinda like making all other keys on the keyboard useless except the numbers...and things like +,-, . ?
Any ideas....a simple way that can use C standard libraries....