diff --git a/Swap-without-third-variable/09. shift_swap.cpp b/Swap-without-third-variable/09. shift_swap.cpp new file mode 100644 index 0000000..949eff8 --- /dev/null +++ b/Swap-without-third-variable/09. shift_swap.cpp @@ -0,0 +1,12 @@ +#include "bits/stdc++.h" +using namespace std; + +int main(){ + int a=5; + int b=9; + cout<<"a :"<>b; + a = log2(a/b); //just a little bit of math hahaha, hope it's right + cout<<"a :"<