Write a program to swap two numbers without using temp variable.

#include<stdio.h>
#include<conio.h>
  main()
{
  int a,b;
  clrscr();
  printf("\n enter the number a and b")
  scanf("\n %d%d",&a,&b);
  a=a+b;
  b=a-b;
  a=a-b;
  printf("\n a=%d,b=%d",a,b);
  return (0);
}

output:-
 enter the number a=5
 enter the number b=9
 a=9
 b=5