diff --git a/swap_two_vars_2.c b/swap_two_vars_2.c new file mode 100644 index 0000000..324c34f --- /dev/null +++ b/swap_two_vars_2.c @@ -0,0 +1,14 @@ +#include + +int main() +{ + int a,b; + printf("Enter the two elements \n"); + scanf("%d%d",&a,&b); + printf("Print the two numbers %d %d \n",a,b); + a=a^b; + b=a^b; + a=a^b; + printf("After Swapping %d %d",a,b); + return 0; +}