//Swap values using third variable
#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter a=");
scanf("%d",&a);
printf("Enter b=");
scanf("%d",&b);
printf("\nBefore swaping : a=%d b=%d\n",a,b);
c=a;
a=b;
b=c;
printf("After swap : a=%d b=%d ",a,b);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: