C++ Program to Add Two Numbers

#include<iostream>
using namespace std;
int main()
{
    int num1, num2, add;
    cout<<"Enter Two Numbers: ";
    cin>>num1>>num2;
    add = num1+num2;
    cout<<"\nResult = "<<add;
    cout<<endl;
    return 0;
}

OUTPUT:

Enter two Numbers: 4
5
4 + 5 = 9

Leave a Comment