Write a Python program that asks for two integers m
and n
. The program should print a sequence of numbers, each one being the double of its predecessor, starting from m
and as long as the number is less than n
.
Example 1:
Input: m = 2, n = 20
Output: 2, 4, 8, 16
Example 2:
Input: m = 1, n = 50
Output: 1, 2, 4, 8, 16, 32