// Program of swap two numbers
#include<stdio.h>
#include<conio.h>
main();
{
int a,b,c;
clrscr();
printf("Enter numbers:");
scanf("%d%d",&a,&b);
printf(""before swapping.. \n a=%d,b=%d",a,b);
c=a;
a=b;
b=c;
printf("\n After swapping.. \n a=%d,b=%d",a,b);
getch();
}
Comments
Post a Comment