From 62bef9862bf417b2bf6aa8d41ba393ef103cc0c2 Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Thu, 2 Apr 2020 16:16:12 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu4/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/du4/program.c b/du4/program.c index ea316cc..ca682f1 100644 --- a/du4/program.c +++ b/du4/program.c @@ -14,6 +14,9 @@ int main(){ check *= 100000; int tmp = check; check = (float) tmp / 100000; + answer *= 100000; + tmp = answer; + answer = (float) tmp / 100000; printf("%s\n", (check == answer) ? "OK" : "ZLE"); //printf("%f\n", check); }