du3
This commit is contained in:
parent
68fe8dde34
commit
6e969b7e3e
@ -83,8 +83,8 @@ int main() {
|
||||
else if (or == '-') cislo = a - b;
|
||||
else if (or == '*') cislo = a * b;
|
||||
else {
|
||||
if (b == 0) {
|
||||
printf("CHYBA\n");
|
||||
if (fabs(b) < 0.000001) {
|
||||
printf("ZLE\n");
|
||||
continue;
|
||||
}
|
||||
cislo = a / b;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user