Aktualizovat du3/program.c
This commit is contained in:
parent
4984c4a1f0
commit
4a8f4f0277
@ -14,7 +14,7 @@ float IsArithCorrect(float num1, float num2, char op, float result)
|
|||||||
{
|
{
|
||||||
float calcResult = 0;
|
float calcResult = 0;
|
||||||
|
|
||||||
if (op == '/' && num2 == 0) { return -1;}
|
if (op == '/' && num2 == 0) { return 0;}
|
||||||
|
|
||||||
switch (op)
|
switch (op)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user