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