refresh
This commit is contained in:
parent
fdc4c6d84b
commit
d39271ead5
@ -86,6 +86,11 @@ int main() {
|
||||
result = a * b;
|
||||
}
|
||||
if (strcmp(input, "/")==0) {
|
||||
if (b==0) {
|
||||
printf("0!\n");
|
||||
destroy_stack(s);
|
||||
return 0;
|
||||
}
|
||||
result = a/b;
|
||||
}
|
||||
push_stack(s, result);
|
||||
|
Loading…
Reference in New Issue
Block a user