Social Icons

Saturday, 15 February 2014

Program to calculate sum of two numbers

#include<iostream.h>
#include<conio.h>

void main()
{
int x,y,sum;
clrscr();

cout<<"\n Enter first no : ";
cin>>x;
cout<<"\n Enter second no : ";
cin>>y;

sum=x+y;
cout<<"\n\t Sum is : "<<sum;
getch();
}


                                                      Output

No comments:

Post a Comment