Ask the user for a number, then call a function powerOfTwo which calculates the power of two which is closest to that number without going over.
Please enter a number: 99 2, 4, 8, 16, 32, 64 The answer is 64
Output: Please Enter a... View the full answer
- How about in Python programming?
- Apr 03, 2018 at 10:26pm