c++ coding structure

// Step 1: Include necessary header files
#include <iostream>

// Step 2: Use the appropriate namespace
using namespace std;

// Step 3: Define the main function
int main() {
    // Step 4: Declare variables, if needed
    int num1, num2, sum;

    // Step 5: Prompt user for input
    cout << "Enter the first number: ";
    cin >> num1;

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

    // Step 6: Perform calculations or desired operations
    sum = num1 + num2;

    // Step 7: Display the result
    cout << "The sum of " << num1 << " and " << num2 << " is: " << sum << endl;

    // Step 8: Return a value from the main function (0 indicates successful execution)
    return 0;
}