Display the Doubles (Exercise)
The next exercise is to display the doubles. Write a function called
doubles() That takes a number as its input and doubles it. Then use
doubles() in a loop to double the number
2 three times, displaying each result on a separate line.
Become a Member to join the conversation.