C++ examples for Operator:Relational Operator
The Less-Than or Equal To Operator
#include <iostream> using namespace std; int main(int argc, char *argv []) { cout << "Enter your first number: " << endl; int number1 = 0; cin >> number1; //w ww . j a va2 s. co m cout << "Enter your second number: " << endl; int number2 = 0; cin >> number2; bool result = number1 <= number2; cout << "It is " << result << " that your first number is less than " << " or equal to your second." << endl; return 0; }