C Program to swap two numbers

C Program to swap two numbers




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


No comments:

Post a Comment