From c5b23eecfd3e364f5984e23d8a9cb03ffb5b5922 Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Thu, 2 Apr 2020 15:54:39 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du4/program.c b/du4/program.c index 54aa8cb..71165ce 100644 --- a/du4/program.c +++ b/du4/program.c @@ -10,7 +10,7 @@ int main(){ printf("CHYBA\n"); return -1; } - int check = (action == '/') ? num1 / num2 : (action == '*') ? num1 * num2 : (action == '+') ? num1 + num2 : num1 - num2; + float check = (action == '/') ? num1 / num2 : (action == '*') ? num1 * num2 : (action == '+') ? num1 + num2 : num1 - num2; printf("%s\n", (check == answer) ? "OK" : "ZLE"); }