Add Two Numbers in CPP

Add Two Numbers in CPP

#include<iostream>
using namespace std;
int main()
{
int x, y, sum;
cout<<” Enter Two Numbers for Addition”<<endl;
cin>>x>>y;
sum = x + y;
cout<< “Sum of Two Numbers is”<<“n”<<sum;
return 0;
}
___________________________
For output see the video

 

Leave a Comment

Your email address will not be published. Required fields are marked *

©Postnetwork-All rights reserved.