From 1c8bbfb8ef499a5d2c5b4cc5c09635d972e7c8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Thu, 19 Mar 2026 01:27:57 +0000 Subject: [PATCH] Aktualizovat du3/program.c --- du3/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/du3/program.c b/du3/program.c index 7501235..54dad7b 100644 --- a/du3/program.c +++ b/du3/program.c @@ -32,8 +32,8 @@ float IsArithCorrect(float num1, float num2, char op, float result) break; } - float calcResult = roundf(calcResult* 100.0f) / 100.0f; - float result = roundf(result * 100.0f) / 100.0f; + calcResult = roundf(calcResult* 100.0f) / 100.0f; + result = roundf(result * 100.0f) / 100.0f; if (calcResult == result) { @@ -126,7 +126,7 @@ int main() { printf("CHYBA\n"); } - else if (IsArithCorrect(num1, num2, &op1, resultNum) == 0) + else if (IsArithCorrect(num1, num2, op1, resultNum) == 0) { printf("ZLE\n"); }