a && b is true if either a or b is true | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 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 Respostas
+ 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