fix5
This commit is contained in:
parent
8c9a37fb1d
commit
073f22bdb6
@ -72,7 +72,7 @@ int main(){
|
||||
if (input[0]=='-') result=a-b;
|
||||
if (input[0]=='*') result=a*b;
|
||||
if (input[0]=='/'){
|
||||
if (b==0) {printf("division by zero");return 1;}
|
||||
if (b==0) {printf("division by zero");return 0;}
|
||||
result=a/b;
|
||||
}
|
||||
push(&mystack, result);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user