{ A destination to learn coding }

Code to swap two humbers by using third variable.


#include <stdio.h>
int main()
{
  int a,b,c;
  printf("Enter two numbers\n");
  scanf("%d%d",&a,&b);
  c=a;
  a=b;
  b=c;
  
  printf("Value of a is %d\n",a);
  printf("Value of b is %d\n",b);
  return 0;
 }