Demo code:
#include <iostream>
using namespace std;
int main()
{
//demonstrate IF-ELSE decision structure
cout << "-- PROGRAM TO DEMONSTRATE IF-ELSE --" << endl;
cout << "What is your favorite number? ";
int favNum;
cin >> favNum;
if (favNum <= 10)
{
cout << "The value is just right" << endl;
} else {
cout << "The value is too high" << endl;
}
system("PAUSE");
return 0;
}