//WAP TO SWAPPING OF 2 INT NOS WITHOUT USING THIRD VERIABLE
//WAP To Swapping Of 2 Int Nos Without Using Third Veriable
#include<stdio.h>
void main()
{
int x , y;
printf("\n Enter The Value Of x, y");
scanf("\n %d%d , &x ,&y);
printf("\n Before Swapping %d%d" , x , y);
x=x+y;
y=x-y;
x=x-y;
printf("\n After Swapping , x , y);
}
Comments
Post a Comment