This commit is contained in:
Weber 2024-10-14 12:33:48 +00:00
parent 4a7695e7ce
commit 323e53fd88

View File

@ -58,7 +58,7 @@ bool delit(KalkulackaZasobnik *kalkulacka) {
float a, b;
if (vyber(kalkulacka, &a, &b)) {
if (a == 0) {
printf ("division by zero\n")
printf ("division by zero\n");
return false;
}
return vloz(kalkulacka, b / a);