Write the following using the LOGICAL OPERATORS:
1. Ifa is equal to b or b is equal to c
2 fb is not equal to c and c is not equal to d
3. lfi is not equal to 50
4. If x is greater than 5 and y is less than 6
5. itp is greater than q and q is greater than rand q is greater than s .please help
Answers
Answered by
0
Answer:
The programs we’ve seen in previous chapters do pretty much the same thing every time, regardless of the input. For more complex computations, programs usually react to the inputs, check for certain conditions, and generate appropriate results. This chapter presents the features you need for programs to make decisions: a new data type called boolean, operators for expressing logic, and if statements.
Similar questions