program to swap two values A & B without using third variable
#include<stdio.h>
#include<conio.h>
void main()
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
printf("\n enter number a:");
scanf("%d",&a);
printf("\n enter number b:");
scanf(%d",&b);
a = a + b;
b = a - b;
a = a - b;
printf(" \n result a : =%d",a);
printf(" \n result b : =%d",b);
getch();
}
printf(" \n result b : =%d",b);
getch();
}