This commit is contained in:
Your Name 2025-10-16 03:00:05 +02:00
parent 2a2b235beb
commit bd5c1c18c8

View File

@ -89,7 +89,7 @@ int main()
char input[1000]; char input[1000];
while (fgets(input,sizeof(input),stdin)!=NULL) while (fgets(input,sizeof(input),stdin)!=NULL)
{ {
if((input[0]>=0 && input[0]<=47) || (input[0]>=58 && input[0]<=127)) if((input[0]>0 && input[0]<=47) || (input[0]>=58 && input[0]<=127))
{ {
printf("bad input\n"); printf("bad input\n");
return 0; return 0;