Update cv3/program.c

This commit is contained in:
Viktor Daniv 2024-10-07 12:33:45 +00:00
parent caa7717451
commit 5b84218b3f

View File

@ -63,7 +63,10 @@ int perform_operation(Calculator *calc, char op) {
if (b == 0) {
printf("division by zero\n");
break;
} else {
printf("no input\n");
}
push(calc, a / b);
break;
default:
@ -72,7 +75,7 @@ int perform_operation(Calculator *calc, char op) {
}
print_stack(calc);
printf("no input\n");
return 1;
}