/* WAP to swap the content of variables using C*/
//Header files
#include<stdio.h>
#include<conio.h>
//Main function
void main()
{
//Variable declaration of type integer
int a,b,c;
//function for clearing screen
clrscr();
//function for printing on console
printf("Enter value for a:");
//function for taking input from user
scanf("%d",&a);
printf("Enter value for b:");
scanf("%d",&b);
printf("Before Swapping:\n");
printf("Value of a:%d\t",a);
printf("Value of b:%d\n",b);
//Assigning and swapping variables
c=a;
a=b;
b=c;
printf("After swapping:\n");
printf("Value of a:%d\t",a);
printf("Value of b:%d",b);
//function for holding the screen until any key is pressed
getch();
}