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"); }