2,490 views

Given that $x=7.5, j=-1.0, n=1.0, m=2.0$ the value of $--x+j==x>n>=m$ is:

1. $0$
2. $1$
3. $2$
4. $3$

--x+j==x>n>=m

6.5 +(-1.0) ==6.5 > 1.0 >= 2.0

5.5 == 1 > = 2.0

3.5 == 0

false so 0 is ans

### 1 comment

3.5, how?
$--x+j==x>n>=m$

Priority: $increment > arithmetic > inequality > equality$

Associativity is left to right for the inequality operators.

$((6.5-1.0)==((6.5>1.0)>=2.0))$

$=> 5.5==(1>=2.0)$

$=> 5.5==0$

$=>0$

1 vote