Question: Write a program with a loop that repeatedly reads a string input, where the string is either duck or goose . The loop
Write a program with a loop that repeatedly reads a string input, where the string is either "duck or "goose The loop should terminate "goose is entered. After the loop, your coach should display the number of times "duck" was entered.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
