Friday 4 September 2015

swapping two number

#include<stdio.h>
#include<conio.h>
void main()
{int a,b;
printf("enter 2  numbers");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("\n%d",a);
printf("\n%d",b);
getch();
}

No comments:

Post a Comment