Thursday, November 5, 2009

C Program to swap 3 numbers

#include
#include
void main()
{
int a,b,c;
printf("the value of a,b");
scanf("%d,%d",&a,&b);
c=a;
a=b;
b=c;
printf("the value a=%d",a);
printf("the value b=%d",b);
getch();
}

No comments: