#include <iostream> using namespace std; int main() { int num1, num2, numsums; cout << "Enter two integers: "; cin >> num1 >> num2; // sum two numbers in stored in variable numsums numsums = num1 + num2; // Prints sum cout << num1 << " + " << num2 << " = " << numsums; return 0; }
Enter two integers: 18 8 18 + 8 = 26
👈 👉