Swapping of two number

Swapping of two number in C-Language:-

Swapping of two number:

Swapping of two number is the basic program of the c language programming in the tutorial I will you the full code of the swap of two num in c language as:-


#include<stdio.h>
void main()
{
     int a,b,temp;
printf("Enter two number\n");
scanf("%d%d",&a,&b);
temp=a;
a=b;
b=temp;
printf("The swapped numbers are a=%d and b=%d",a,b);
}
For the better understanding of the code and the concept of the program watch the following 
video it help you to better understanding:-


Previous
Next Post »