Question: Given an integer greater than 9, print all the bits in the reverse order, 1's value first, and then 2's value and then the 4's
Given an integer greater than 9, print all the bits in the reverse order, 1's value first, and then 2's value and then the 4's value, and then the 8's value and so on, with a space in between.
Example input 3
output will be 1 1
Example input 37
output will be 1 0 1 0 0 1
Example input: 64
output: 0 0 0 0 0 0 1
Note: I need a code in python please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
