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