Aktualizovat du3/program.c

This commit is contained in:
Tomáš Vlček 2026-03-19 10:44:16 +00:00
parent 460f6b085d
commit 2273e99c14

View File

@ -14,7 +14,7 @@ float IsArithCorrect(float num1, float num2, char op, float result)
{ {
float calcResult = 0; float calcResult = 0;
if (num1 == '/' && num2 == 0) { return -1;} if (op == '/' && num2 == 0) { return -1;}
switch (op) switch (op)
{ {