description: This program for the addition of two integer value
code:
code:
/* C++ program for the addition of two integer value */
#include <iostream>
using namespace std;
int main()
{
int p,q,sum;
cout << "Enter the value of first variable :";
cin>>p;
cout << "Enter the value of second variable :";
cin>>q;
sum = p+q; //addition of two variables
cout<<endl<<"Addition of two variable :"<<sum;
return 0;
}
output
Enter the value of first variable :15
Enter the value of second variable :25
Addition of two variable :40