Question: 41. Input an integer and then output the value shifted to the right 1,2,3,4,31 bits and shifted to the left 1,2,3,4,31 bits in both decimal
41. Input an integer and then output the value shifted to the right 1,2,3,4,31 bits and shifted to the left 1,2,3,4,31 bits in both decimal and hexadecimal (ten lines of output in all) using the format Problem 41) Use a while-not-end-of-file loop to input integers. XXXXXXXXXXX, XXXXXXXX For example, if you entered 431, your screen should look like this x? 431 215, D7 107, 6B 53, 35 26, 1A 0, 0 862, 35E 1724, 6BC 3448, D78 6896, 1AF0 2147483648, 80000000
I Need it in python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
