Hello,
I have a problem in my program
I want to check the input if it's a number or not
the number Component of N boxes
for example if N=4
the input 1234 is valid
the input 123a is invalid
i try with this code
printf ("Please enter guess no.%d : ",i+1);
scanf("%d", &num);
if (isdigit(num))
{
printf("valid input!\n");
}
else printf("Wrong input!\n");
and I try used the scanf() function to check, but it's not succeded !!
How can I do this ?!!
Thanks