a && b is true if either a or b is true | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

a && b is true if either a or b is true

why that didn't be accepted in Conditionals and Loops Quiz?

8th Dec 2019, 6:14 PM
Pyae Sone Kyaw
Pyae Sone Kyaw - avatar
5 Answers
+ 6
A && B is true when both A and B is true (1) as it perform multiplication operation so for that both value should be true that is 1. So the statement either a or b is false that's why its not accepted in quiz. A OR B is give true when any one operand is true Pyae Sone Kyaw
8th Dec 2019, 6:28 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
&& -> this is a logical AND operator Both sides have to be true in order for it to return true.
8th Dec 2019, 6:27 PM
Avinesh
Avinesh - avatar
+ 1
No, you might be confusing || and &&.
8th Dec 2019, 6:56 PM
Seb TheS
Seb TheS - avatar
0
a is true and b is false, what is the result of a||b
22nd Jul 2023, 6:45 AM
sasip
0
E&& is Anders, “Ande”; “E&&WA” = <&*€>;<&*Ë>> Anderson <“^A&E*”> Thep Douang “The_And”;”And”;<”&A&”> = “Th^AE” ^T&&ewa” Thep Douang :{ Ewa:^Ew&&* }/{^ewand^;*Weand* for =(*”Andre”^) /Thep Douang And
8th Apr 2024, 3:54 AM
Thepthikone Douangphoumy