Sunday 28 December 2014

Program to Swap two No.'s

#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