#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

#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