for c++

#include <iostream>  // Include the necessary header file for input and output operations

// Define the main function, the entry point of the program
int main() {
    // Declare variables to store user input and the result
    int num1, num2, sum;

    // Prompt the user to enter the first number
    std::cout << "Enter the first number: ";

    // Read the first number from the user
    std::cin >> num1;

    // Prompt the user to enter the second number
    std::cout << "Enter the second number: ";

    // Read the second number from the user
    std::cin >> num2;

    // Perform the addition operation
    sum = num1 + num2;

    // Display the result to the user
    std::cout << "Sum: " << sum << std::endl;

    // Return 0 to indicate successful execution of the program
    return 0;
}