This commit is contained in:
Bohdan Kapliuk 2024-10-12 15:29:42 +03:00
parent 005b98db7d
commit 34105f9bec

View File

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