This commit is contained in:
Oleksandr Vyshniakov 2025-10-12 22:16:20 +02:00
parent fdc4c6d84b
commit d39271ead5

View File

@ -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);