diff --git a/du4/program.c b/du4/program.c index 6a5bbd5..c72067f 100644 --- a/du4/program.c +++ b/du4/program.c @@ -36,7 +36,7 @@ int main() { num1 = strtof(line, &next); while (*next == ' ') next++; if (*next != op) { - printf("CHYBA\n"); + printf("KONIEC\n"); goto next_line; } next++; @@ -67,10 +67,6 @@ int main() { result = num1 * num2; break; case '/': - if (num2 == 0) { - printf("CHYBA\n"); - goto next_line; - } result = num1 / num2; break; }