0
related to this question
i wanna to know that why answer FALSE. beacause 7 and 7.0 are equal. print ( 7 > 7.0) { it is question guys please make me understand.}
3 ответов
+ 3
Peeyush Kumar you are checking if 7 is greater than 7.0 which obviously is false ,they both are equal
+ 1
Because 7 is an integer and 7.0 is an Float type.
0
You are checking 7>7.0
Which is of course false because they are equal.
If you write 7==7.0
Then it might return you true (what you want).
7>7.0 //False
7==7.0 //True
7>=7.0 //True