Can you write out the steps and events you want your code to do when it executes?

The posted code does this:
ask user a question
if user answers yes: loop 100 times