#include<iostream>
using namespace std;
int main()
{
int x,y,sum;
cout<<"Enter first no: ";
cin>>x;
cout<<"Enter second no: ";
cin>>y;
sum=x+y;
cout<<"\nSum = "<<sum;
return 0;
}
Output
Enter first no: 4
Enter second no: 6
Sum = 10