0

Write code by c++

int i = 10; int j = 15; int k = 15; int m = 0; if( i < j && j < k) if( i != j || k < j) if( j<= k || i > k) if( j == k && m) if(i) if(m || j && i )

15th Feb 2021, 8:20 PM
Oroob Mustafa
Oroob Mustafa - avatar
2 Respostas
0
try it like this #include <iostream> using namespace std; int main() { int i = 10; int j = 15; int k = 15; int m = 0; if( i < j && j < k) {cout << "False because j=k";} if( i != j || k < j) {cout << "true i != j \n";} if( j<= k || i > k) {cout << "true j=k \n";} if( j == k && m) {cout << "False";} if(i) {cout << "ttttrue\n";} if(m || j && i ) {cout << "truest ";} } notice that where I wrote false will not output anything because in if block : code will execute only if condition is true
15th Feb 2021, 10:08 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar