/** * The addtwo program implements a simple application * whose purpose is to imput two numbers entered by the * user, compute the sum, and print it out to the console. */ #include using namespace std; // The single function of the addtwo program, main int main() { int firstNumber; // holds first integer entered by user int secondNumber; // holds second integer entered by user int sum; // holds the computed sum of the two integers cout << "Enter the first integer: "; cin >> firstNumber; cout << "Enter the second integer: "; cin >> secondNumber; sum = firstNumber + secondNumber; cout << "Sum is " << sum << endl; return 0; }