Update cv3/program.c
This commit is contained in:
parent
caa7717451
commit
5b84218b3f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user