0
What does the truth table come to play in a selection Control structure?
4 Antworten
+ 2
I am not able to understand it
+ 1
an example is when you have 2 or more different condition
//and
if both are required
if( condition A && conditionB)
//or
if one are optional
if( conditionA || conditionB)
//not
if one condition shouldnt be true
if(!conditionA)
you can use them all at once like
//NOT(A AND (B OR C ))
if(!(A && (B || C)))
as long as tge structure are clear
0
The truth table is
True And true = true
True and true = false
True or true = true
True or false= true
0
Thanks bro