when kotlin

#include <iostream>

int main() {
    // Step 1: Include necessary header file for input/output operations
    using namespace std;

    // Step 2: Define the main function
    int num1, num2, sum;

    // Step 3: Declare variables for input and output
    cout << "Enter first number: ";
    cin >> num1;

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

    // Step 4: Perform addition
    sum = num1 + num2;

    // Step 5: Display the result
    cout << "Sum: " << sum << endl;

    // Step 6: Return 0 to indicate successful execution
    return 0;
}