/* Interchange The Value Of 1st And 2nd */
/* Suchetan Dey */
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter 1st Value ");
scanf("%d",&a);
printf("Enter 2nd Value ");
scanf("%d",&b);
c=a;
a=b;
b=c;
printf("The Interchange Value Is : %d %d ",a,b);
getch();
}
The Output is :-
/* Suchetan Dey */
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter 1st Value ");
scanf("%d",&a);
printf("Enter 2nd Value ");
scanf("%d",&b);
c=a;
a=b;
b=c;
printf("The Interchange Value Is : %d %d ",a,b);
getch();
}
The Output is :-