True or false 34<23 || 12!=5 ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

True or false 34<23 || 12!=5 ?

According to logical operator

6th Jun 2022, 5:05 PM
Kashish
4 Answers
+ 4
Kashish you can try it out in Sololearn's Code Playground and see the result. It is usually quicker than posting the question here and waiting for an answer.
6th Jun 2022, 9:58 PM
Brian
Brian - avatar
+ 2
What do you think?
6th Jun 2022, 5:10 PM
Ipang
+ 2
The answer will will return true due to the or ( || ) condition which validates one statement which is 12!=5 {12 is not equals to 5 }
6th Jun 2022, 6:41 PM
╥ YIPMONG Jr ╥
╥ YIPMONG Jr ╥ - avatar
0
True because || (or operator) return true if one condition is true and second condition 12 is not equal to 5 is true so it will return true. You can use && operator if you want to check if both conditions are true or not.
8th Jun 2022, 7:20 AM
RD Singh
RD Singh - avatar