#include<stdio.h>

main()
{
int a,b;
printf("Enter a\n");
scanf("%d",&a);
printf("Enter b\n");
scanf("%d",&b);
printf("The values of a is %d and b is %d before swaping\n",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("The values of a is %d and b is %d after swaping\n",a,b);

}
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

Enter a 2 Enter b 3 The values of a is 2 and b is 3 before swaping The values of a is 3 and b is 2 after swaping