Aktualizovat du3/program.c
This commit is contained in:
parent
460f6b085d
commit
2273e99c14
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user