This commit is contained in:
Weber 2024-10-14 14:12:20 +00:00
parent cc6d8d6132
commit e6f2ab769c

View File

@ -142,12 +142,14 @@ int main() {
if (a == 0) { if (a == 0) {
printf("division by zero\n"); printf("division by zero\n");
return 0; return 0;
} else { } if else {
vloz(&kalkulacka, b / a); vloz(&kalkulacka, b / a);
zobraz_zasobnik(&kalkulacka); zobraz_zasobnik(&kalkulacka);
} }
default: else{
printf("not enough operands\n"); printf("not enough operands\n");
}
} else { } else {
printf("no input\n"); printf("no input\n");
return 0; return 0;