C++ Comparison Operator on int value
#include <iostream> using namespace std; int main()//from w w w . j a v a 2 s . co m { int numb; cout << "Enter a number: "; cin >> numb; cout << "numb<10 is " << (numb < 10) << endl; cout << "numb>10 is " << (numb > 10) << endl; cout << "numb==10 is " << (numb == 10) << endl; return 0; }