diff --git a/a1/program.c b/a1/program.c index 548bbfa..49dd097 100644 --- a/a1/program.c +++ b/a1/program.c @@ -36,7 +36,9 @@ int main() { break; } - if (fabs(vysledok - ocakavany_vysledok) < 0.0001) { + printf("Expected result: %.4f, Actual result: %.4f\n", ocakavany_vysledok, vysledok); + + if (fabs(vysledok - ocakavany_vysledok) < 0.01) { printf("OK\n"); } else { printf("ZLE\n");