c program for swapping of two numbers using temporary variable
#include <stdio.h>
int main()
{
int a, b, temp;
printf("enter the values of a and b: n");
scanf("%d%d", &a, &b );
printf("current values are:n a=%dn b=%dn", a, b);
temp=a;
a=b;
b=temp;
printf("After swapping:n a=%dn b=%dn", a, b);
}