translate

#include <iostream>
using namespace std;

int main() {
    // Declare variables
    int num1, num2, sum;

    // Input: Prompt user for two numbers
    cout << "Enter first number: ";
    cin >> num1;

    cout << "Enter second number: ";
    cin >> num2;

    // Process: Calculate the sum of the two numbers
    sum = num1 + num2;

    // Output: Display the result
    cout << "Sum: " << sum;

    // Return 0 to indicate successful execution
    return 0;
}