Why 7 <= 8 returns true? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why 7 <= 8 returns true?

As 7 is smaller than 8 , i.e 7<8 agreed But 7 is not equal to 8, i.e 7 = 8 not true. Then why 7<=8 returns true?

12th Dec 2019, 9:16 AM
Surbhi Dighe
Surbhi Dighe - avatar
25 ответов
+ 17
surbhi dighe See in a simple way <= is called lessthan || equalsto ((7 < 8) || (7 == 8)) == (true || false) == true
12th Dec 2019, 9:37 AM
A͢J
A͢J - avatar
+ 15
I have a nice idea: How about we all write the same thing, over and over and over?
13th Dec 2019, 12:44 PM
HonFu
HonFu - avatar
+ 10
😭😭😭😭😭
13th Dec 2019, 5:16 PM
HonFu
HonFu - avatar
+ 6
😭
13th Dec 2019, 4:16 PM
HonFu
HonFu - avatar
+ 6
😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭 (I'll unfollow now, so that I won't have to look at this misery again.)
13th Dec 2019, 9:39 PM
HonFu
HonFu - avatar
+ 4
Because it's a fact.
13th Dec 2019, 3:09 AM
Sonic
Sonic - avatar
+ 4
Don't cry HonFu 😂😂😂
13th Dec 2019, 6:45 PM
A͢J
A͢J - avatar
+ 4
People he Already got so many Answer..
13th Dec 2019, 6:46 PM
A͢J
A͢J - avatar
+ 3
Prasad Shinde Here is lessthan or equalsto. Don't confuse him. 😂😂
12th Dec 2019, 11:00 AM
A͢J
A͢J - avatar
+ 3
It's not 7 is less than and equal to 8. It's 7 is less than or equal to 8.
13th Dec 2019, 3:10 AM
Sonic
Sonic - avatar
+ 3
Coz...its 7 is less than OR equal to 8
13th Dec 2019, 6:53 AM
Jyoti Kumari
Jyoti Kumari - avatar
+ 2
7<=8 has two meanings: 1. 7<8, which is true. or 2. 7=8, which is false. Only is required one option to be true.
14th Dec 2019, 12:53 AM
🔸< 𝙷 𝙴 𝚁 𝙼 𝙾 𝚂 >🔸
🔸< 𝙷 𝙴 𝚁 𝙼 𝙾 𝚂 >🔸 - avatar
+ 1
7 is less than OR equals to 8 Only one condition must be true. Pure logic: -Is seven less than or equal to eight? -Yes, is less than. - But is not equal. - But is less than. So, yes, is less than OR equals to eight.
12th Dec 2019, 8:36 PM
Felipe Navarro Tárraga
Felipe Navarro Tárraga - avatar
+ 1
Because 7 is smaller than 8, so it uses "or " . Means either greater than or equals to , as it finds one condition true so it returns true
13th Dec 2019, 8:29 AM
Mridul Jaiman
Mridul Jaiman - avatar
+ 1
Because it's less than OR equal to not less than AND equal to
13th Dec 2019, 12:36 PM
Yug Agarwal
Yug Agarwal - avatar
+ 1
7<=8 means 7 less than or equal to 8,which evaluates to true cuz 7<8
13th Dec 2019, 5:03 PM
Codebeast**
Codebeast** - avatar
+ 1
One of the conditions is met
13th Dec 2019, 10:01 PM
[MONKEY_KING]
+ 1
Because here we say "less than "or" equal to" so on of them is true
14th Dec 2019, 3:35 AM
Diptiba Jadeja
Diptiba Jadeja - avatar
+ 1
Because either of them needs to be true to make it true
14th Dec 2019, 5:57 AM
Manthan Patil
Manthan Patil - avatar