Menu

[solved] – Question 81881

Write a loop that reads strings from standard input, where the string is either “duck” or “goose”. The loop terminates when “goose” is read in. After the loop, your code should print out the number of “duck” strings that were read.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *