Complete a program to enter and show a list of exercises.
Prompt the user with "Hello! what is your workout schedule? (say 'done' to end...
Complete a program to enter and show a list of exercises.
Prompt the user with "Hello! what is your workout schedule? (say 'done' to end the list)\n"
Repeatedly as the user enters any exercise that isn't "done"
. If they enter "show"
,
display the workout as a list so that each line shows the exercises entered in order, with a number proceding it, such as:
1. 20 push ups
2. run 1 mile
When the user enters "done"
, finish the program
Complete the code within the brackets ({ }
) below.
Your feedback will appear here when you check your answer.