Input:-
#include< stdio.h >
#include< conio.h >
void main( )
{
int a,b,c;
clrscr( );
printf("Enter value of a: ");
scanf("%d",&a);
printf("Enter value of b: ");
scanf("%d",&b);
c=a;
a=b;
b=c;
printf("\nValue of a:%d",a);
printf("\nValue of b:%d",b);
getch( );
}
Output:-
Enter value of a: 5
Enter value of b: 9
Value of a:9
Value of b:5