// // Program name: add2 // Author: CS 1320 class // Scribe: B. Massingill // // Input: two integers x and y, from standard input. (program will prompt // for them.) // Output: sum of x and y. // // include I/O library definitions #include // main program int main() { // variable declarations int x; int y; int sum; // prompt user and read numbers cout << "Enter an integer: "; cin >> x; cout << "Enter another integer: "; cin >> y; // add them and print the result sum = x + y; cout << x << " + " << y << " = " << sum << endl; return 0; }