C Source Codes List | Source Code Home
Program : Program to swap two numbers.
#include
#include
#include
#include
#include
#include
main()
{
int a,b;
clrscr();
printf("ENTER TWO NUMBERS(a & b respectively):- ");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("NO. ON SWAPPING BECOME:- a=%d & b=%d",a,b);
printf("\n\n\n\n\n\t\t\tHAVE A NICE DAY! BYE.");
getch();
}
C Source Codes List | Source Code Home
|
|