C Programming  Write a C program to input two nos and swap it.

void main()
{
int a,b,c;
printf("Enter two nos.");
scanf("%d%d",&a,&b);
c=a;
a=b;
b=c;
printf("Swaped value a=%db=%d",a,b);
getch();
}

Input:   10  20
Output  Swaped value a=20 b=10