Question: Write a sentinel loop in C++ that prompts the user for a string. Loop through the string and count and print the number of 'e's.
Write a sentinel loop in C++ that prompts the user for a string. Loop through the string and count and print the number of 'e's. Continue to prompt the user for a string until they enter '*' (the sentinel value). Declare string variable query to hold the string and int variable count to hold the count.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
