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