fork download
  1. num = int(input("Enter number:"))
  2. target = num * 2
  3. current= num
  4. print("starting with {current}, doubling to {target}:")
  5. while current < target:
  6. current +=1
  7. print(current)
  8.  
Success #stdin #stdout 0.04s 63504KB
stdin
10
stdout
Enter number:starting with {current}, doubling to {target}:
11
12
13
14
15
16
17
18
19
20