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

 

Share to Your Friend
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Have any Question or Comment?

Leave a Reply

Subscribe to Our Newsletter