Example 1 : ----------- #include using namespace std; int main() { cout << "Hello World !"; return 0; } Example 2 : ----------- #include using namespace std; int main() { int a; cout << "Hello, when did you arrive ?\n"; cin >> a; cout << "You are "<< 2002-a << " years old.\n"; return 0; } Example 3: ---------- #include using namespace std; int main() { float fahr, cel; cout << "Please input temperature (in Fahr)\n"; cin >> fahr; cel = (fahr - 32)*5/9; cout << "Temperature (degrees Celsius) = " << cel <<".\n"; return 0; }