//Fig.1.6: fig01_06.cpp // Addition program, here we go #include // Reading int main() { int number1, number2, total; // declaration cout << "Welcome to my first interactive C++ program!\n\n"; cout << "This is called 'Tom's easy addition', try it!\n\n"; cout << "Enter first number\n\n"; // prompt cin >> number1; // read an number cout << "\n"; cout << "Enter second number\n\n"; // prompt cin >> number2; // read an number cout << "\n"; total = number1 + number2; // assignment of a total cout << "And...you grand total is.....\n\n\n" << total << endl; // print result cout << "\n\nThanks for trying Tom's easy addition!\n\nBYE!!\n\n"; return 0; //indicate that the program ended succesfully }