#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter first no. a = ";
cin>>a;
cout<<"Enter second no. b = ";
cin>>b;
a=a+b;
b=a-b;
a=a-b;
cout<<"a = "<<a<<"\n"<<"b = "<<b;
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter first no. a = ";
cin>>a;
cout<<"Enter second no. b = ";
cin>>b;
a=a+b;
b=a-b;
a=a-b;
cout<<"a = "<<a<<"\n"<<"b = "<<b;
getch();
}
No comments:
Post a Comment