assuming a=5 b=6 what is the result of the following statement ((a! =b) &&(a>=b))
Answers
Answered by
1
a!=b true
a>=b false
this is ur output
Answered by
1
((a!=b)&&(a>=b)) has two parts and they are a!=b, a>=b. From the data that is provided, a=5 and b=6.
Therefore, a!=b is true, a>=b is false. Since both the statements are connected using logical AND therefore the value of ((a!=b)&&(a>=b)) is false.
This is a simple logical statement. In this statement, && are the logical operators.
Similar questions