diff --git a/du3/output/program.exe b/du3/output/program.exe index 84d6112..542b321 100644 Binary files a/du3/output/program.exe and b/du3/output/program.exe differ diff --git a/du3/program.c b/du3/program.c index 6f76440..a90be35 100644 --- a/du3/program.c +++ b/du3/program.c @@ -5,10 +5,10 @@ int main() { char input[100]; - if (fgets(input, sizeof(input), stdin) != NULL && input[0] == '\n') { - return 0; - } - + while (fgets(input, sizeof(input), stdin) != NULL) { + if (input[0] == '\n') { + break; + } double cislo1; double cislo2; @@ -19,7 +19,7 @@ int main() { if (colznakov != 5 || rovno != '=') { printf("CHYBA\n"); - return 0; + continue;; } double result2; @@ -55,6 +55,7 @@ int main() { } else { printf("ZLE\n"); } + } return 0; } \ No newline at end of file diff --git a/du3/program.exe b/du3/program.exe index a34ccc1..051cf26 100644 Binary files a/du3/program.exe and b/du3/program.exe differ