SWAP THE VALUES OF TWO VARIABLES USING THIRD VARIABLE


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter two number");
scanf("%d%d",&a,&b);
printf("Before Swapping A = %d B = %d",a,b);
c = a;
a = b;
b = c;
printf("After Swapping A = %d B = %d",a,b);
}

0 comments: (+add yours?)

Post a Comment