I\'m writing a simple program that takes a number and continually doubles it until it has reached an upper limit. The code I\'ve written does this with a for loop and while