+ 2
Why does 10 > 9 > 8 prints false ?
4 Respuestas
+ 7
This is how the sequence goes; 10>9>8 is first evaluated as 10>9 which outputs "true"
The second sequence is executed as
true>8
this gives false because true is same as or equal to 1, thus evaluated as 1>8, and this will finally produce false, since 1is not greater than but less than 8.
Happy coding 😉 Keep coding 👌
+ 4
In Python it would be evaluated as True. :)
+ 2
Because 10>9(true or 1)
But 1 is not greater than that means 10>9>8 is false or 0
0
10>9(true or 1 )
means 10>9>8
true>8
1>8 which is false