#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,temp;
printf("Enter The Values\n");
scanf("%d%d",&a,&b);
temp=a;
a=b;
b=temp;
printf("Swaping of No. is %d%d",a,b);
getech();
}
Output
Enter The Values
1
2
Swaping of No. is 2 1
void main()
{
int a,b,temp;
printf("Enter The Values\n");
scanf("%d%d",&a,&b);
temp=a;
a=b;
b=temp;
printf("Swaping of No. is %d%d",a,b);
getech();
}
Output
Enter The Values
1
2
Swaping of No. is 2 1