Swapping number.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter The value Of A And B:- "); //it is used to collect values from user.
scanf("%d%d",&a,&b); //It Stores the value into the specific memory address.
//logic of Swapping
c=a;
a=b;
b=c;
printf("After Swapping:- %d %d",a,b);
getch();
}
Output:
EmoticonEmoticon