This commit is contained in:
Bohdan Kapliuk 2024-10-12 15:26:26 +03:00
parent c52a1879d9
commit 005b98db7d

View File

@ -19,6 +19,7 @@ int main(){
fgets(vstup, STACK_SIZE, stdin);
vstup[strcspn(vstup, "\n")] = 0;
if(strlen(vstup) == 0){
printf("no input");
break;
}
if(vstup[0] == '-' || vstup[0] == '+' || vstup[0] == '*' || vstup[0] == '/'){