this is in "c"
Code:
/*swapping of two numbers*/
#include<stdio.h>
main()
{
int a,b;
printf("enter the values of a & b");
scanf("%d %d",&a,&b);
printf("the values before swapping are %d,%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("now the values after swapping are %d,%d",a,b);
}


