This commit is contained in:
Yaroslav Orlianskyi 2022-03-30 22:51:49 +02:00
parent 41455fe14e
commit b3516cc6c7
2 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@ int main ()
bool second = false;
while(1){
c = getchar();
if(c <= 255 && c >= 0){
if(c == ' ' || c == '+' || c == '\n' || c == '-' || c == '/' || c == '*' || c == '='){
if(c == '\n'){
break;
}else if(c == ' '){
@ -33,8 +33,6 @@ int main ()
continue;
}
}else{
if(i == 2)
break;
c = 0;
int r = scanf("%d",&c);
b[i++] = c;
@ -53,4 +51,4 @@ int main ()
else
printf("ZLE\n");
return 0;
}
}