add input in c++

#include <iostream>
using namespace std;

int main() {
    int num1, num2, sum;

    // Input first number
    cout << "Enter first number: ";
    cin >> num1;

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

    // Adding two numbers
    sum = num1 + num2;

    // Displaying the sum
    cout << "Sum of " << num1 << " and " << num2 << " is: " << sum;

    return 0;
}