- 1
Please can you write the whole program in C++ for evaluate the following Boolean expressions. So I should finally understand it.
Given the following declarations int x = 3, y = 5, z = 7; bool b1 = true, b2 = false, b3 = x == 3, b4 = y < 3; evaluate the following Boolean expressions: a) x == 3 b) x < y c) x >= y d) x <= y e) x != y - 2 f) x < 10 g) x >= 0 && x < 10 h) x < 0 && x < 10 i) x >= 0 && x < 2 j) x < 0 || x < 10 k) x > 0 || x < 10 l) x < 0 || x > 10 m) b1 n) !b1 o) !b2 p) b1 && b2.
3 Answers
0
Is it possible to solve with sololearn's compiler. If it is possible, please then show me only one example. Write it down how does it go on!
0
a) cout << (x == 3);