#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
puts("Enter the first number");
scanf("%d",&a);
puts("Enter the second number");
scanf("%d",&b);
puts("Before Swapping");
printf("a=%d and b=%d\n",a,b);
a=a+b;
b=a-b;
a=a-b;
puts("After Swapping");
printf("a=%d and b=%d\n",a,b);
}
Comments
Post a Comment