c++ tutorial (ADDITION OF TWO NUMBERS)
Category : TUTORIALS Author : abhishek khaiwale Date : Sat Jul 08 2017 Views : 48
PROGRAM:-
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"enter the first number"<<endl;
cin>>a;
cout<<"enter the second number"<<endl;
cin>>b;
int sum=a+b;
cout<< "the addition of the numbers is:"<<sum<<endl;
}
OUTPUT:-
ENTER THE FIRST NUMBER:10
ENTER THE SECOND NUMBER:20
THE ADDITION OF THE NUMBERS IS:30
PROGRAM:-
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"enter the first number"<<endl;
cin>>a;
cout<<"enter the second number"<<endl;
cin>>b;
int sum=a+b;
cout<< "the addition of the numbers is:"<<sum<<endl;
}
OUTPUT:-
ENTER THE FIRST NUMBER:10
ENTER THE SECOND NUMBER:20
THE ADDITION OF THE NUMBERS IS:30
Disclaimer: The above content reflect author’s personal views and do not reflect the views of OYEWIKI. Neither OYEWIKI nor any person/organization acting on its behalf is liable to accept any legal liability/responsibility for any error/mislead in this information or any information available on the website. This website in no way accepts the responsibility for any loss, injury, damage, discomfort or inconvenience caused as a result of reliance on any information provided on this website.
If you want to add more comments to the article or you see any thing incorrect please write a comment below and we will surely get back to you.