How would I go about printing an error msg for non numeric inputs...
my code basically has input the time in HHMMSS
but if a user enters aabbcc i would like to print error msg
I tried this but it didn't work
??
my code basically has input the time in HHMMSS
but if a user enters aabbcc i would like to print error msg
I tried this but it didn't work
Code:
if (time!=int){
printf("Format must be HHMMSS\n");
return 0;
}
Last edited by a moderator: