I have to check if this exercise is correct
It is not.
if (((x < y) && (y < z)) && (y != 3))
printf(ā%f < %d < %d \nā, x, y, z);
Is correct, assuming float x
and int y, z
.
<>
in some languages means “does not equal”. But in c, the operator is !=
. Also note the difference between logical AND (&&
) and bitwise AND (&
). You should use the logical operators for multiple criteria in a conditional statement.
0
solved What does “<>” mean in C programming? [closed]