#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, temp;
clrscr();
printf("Enter Two Integers\n ");
scanf("%d %d", &a, &b);
temp = a;
a = b;
b = temp;
printf("\n\n after swapping a and b = %d %d", a,b);
getch();
}
Output
Enter Two Integers
5
9
After swapping a and b = 9 5

