- Make a variable called “total number of dots” and set its value to 0. Make another variable called “number of dots” and set its value to 16. Add the value of “number of dots” to the value of “total number of dots” every time the end user enters ‘W’ as the input. Repeat this 5 times dividing the value of “number of dots” by 2 each time. Display the “total number of dots” as the output.
- Use the 'Repeat' block to run the blocks inside a specified number of times. In this challenge you need to repeat the blocks 5 times.
- The 'If' block checks if the condition is true and then runs the blocks inside of the if block.