nadirahaddach / flask_portfolio

Tri 1: Python and Flask Intro
0 stars 0 forks source link

Multiply and Divide by 2 (Shift) #33

Open nadirahaddach opened 3 years ago

nadirahaddach commented 3 years ago

In this example, make the Bits change positions. Start 2^0 to 2^15. If you multiply by 2 then 2^0 bit becomes 2^1, 2^1 to 2^2. If you divide 2^15 becomes 2^14.