C Language
#include<stdio.h> #include<conio.h> void main() { int a, b, c; clrscr(); printf("Enter a"); scanf("%d", &a); printf ("Enter b"); scanf ("%d", &b); c=a; a=b; b=c; printf("After swaping a = %d", a); printf("b = %d",b); getch(); } /*OUTPUT*/ Enter a 9 Enter b 11 After swapping a = 11 b=9