hello fellow coders. i have a slight problem with getting to validate the input.
the thing is, i want the user to be able to input only numbers in here:
could someone with more experience please help.Code:printf("ENTER GUESS 1: "); scanf("%d",&guess[0]); printf("ENTER GUESS 2: "); scanf("%d",&guess[1]); printf("ENTER GUESS 3: "); scanf("%d",&guess[2]); printf("ENTER GUESS 4: "); scanf("%d",&guess[3]);
much appreciated.