#include<stdio.h>//header file
#include<conio.h>//header file
void main() //starting of the main() function
{
int a,b; //declaration of the variables
clrscr();
printf("program that swap the values without using third variable");
printf("\n\n\n\t\t------------INPUT-------------");
printf("\n\nenter any two values");//taking input from the user
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\nthe swapped values are=%d %d",a,b);//printing output
getch();
}