I am a newbie to c++
.
#include <iostream>
using std::cout;
using std::endl;
using namespace std;
int main()
{
int a = 0;
int b = 10;
cout << "Enter first number \n";
cin >> a;
if (a < 10)
{
cout << "Less";
}
}
now when i enter 5 nothing happens and console exits. i think it should display "Less" But it doesn't. Why?