Program to add two number in C++

                             Program  to add two number in C++

Program-  to- add- two -number -in -C++

// Program to find sum of two number

#include<iostream>

using namespace std;

int main()

{

int a,b,sum;

cout<<"enter the value of a and b"<<endl;

cin>>a>>b;

sum=a+b;

cout<<"the sum is "<<sum;

return 0;

}


 

Previous Post Next Post

Contact Form