Get comprehensive answers to your questions with the help of IDNLearn.com's community. Our platform offers reliable and detailed answers, ensuring you have the information you need.
Write a loop that inputs words until the user enters DONE. After each input, the program should number each entry and print in this format:
#1: You entered _____
When DONE is entered, the total number of words entered should be printed in this format:
A total of __ words were entered.
Sample Run
Please enter the next word: cat
#1: You entered the word cat
Please enter the next word: iguana
#2: You entered the word iguana
Please enter the next word: zebra
#3: You entered the word zebra
Please enter the next word: dolphin
#4: You entered the word dolphin
Please enter the next word: DONE
A total of 4 words were entered.
Sagot :
Thank you for being part of this discussion. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. IDNLearn.com is your source for precise answers. Thank you for visiting, and we look forward to helping you again soon.