Write a program that accepts two int numbers, sums them up, and assigns a result to a third integer.
Print out the result afterward.
You can use the following code structure.
#include <iostream> int main() { //your code here }
#include <iostream> int main() //from w w w. ja v a2s. c o m { std::cout << "Please enter two integer numbers: "; int x; int y; std::cin >> x >> y; int z = x + y; std::cout << "The result is: " << z; }