Boolean6. Three integers are given: A, B, C. Check the truth of the statement: "The double inequality \(A < B < C\) is true."

Solution in Python 3:

import random
A = random.randrange(-10,5)
B = random.randrange(-5,5)
C = random.randrange(-5,10)
print("A = ", A)
print("B = ", B)
print("C = ", C)
x = (A<B) and (B<C)
print("A<B: ", (A<B))
print("B<C: ", (B<C))
print("A<B<C: ", x)

Solution in C++:

#include <iostream>
using namespace std;
int main(){
int a, b, c;
cout << "Enter the number A: ";
cin >> a;
cout << "Enter the number B: ";
cin >> b;
cout << "Enter the number C: ";
cin >> c;
cout << "A < B < C: " << (a<b && b<c) << "." << endl;
return 0;
}