C++ Program to calculate sum of two Numbers

      No Comments on C++ Program to calculate sum of two Numbers

Here is the code for

Program to calculate sum of two Numbers

in C++

#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
int sum,x,y;
cout<<"Enter first Number"<<endl;
cin>>x;
cout<<"Enter second Number"<<endl;
cin>>y;
sum=x+y;
cout<<"Sum of 2 number is = "<<sum;
getch();
}

OUTPUT

Program to calculate sum of two Numbers

Leave a Reply

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