Update cv3/program.c
This commit is contained in:
parent
bc1432d64e
commit
caa7717451
@ -62,7 +62,7 @@ int perform_operation(Calculator *calc, char op) {
|
|||||||
case '/':
|
case '/':
|
||||||
if (b == 0) {
|
if (b == 0) {
|
||||||
printf("division by zero\n");
|
printf("division by zero\n");
|
||||||
return 0;
|
break;
|
||||||
}
|
}
|
||||||
push(calc, a / b);
|
push(calc, a / b);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user