Question: This is for C++ Write a program that counts the number of times the user whats the program to loop. Starting the program is considered

This is for C++

Write a program that counts the number of times the user whats the program to loop. Starting the program is considered loop 1. Print the number of the loop, then ask the user if they want to continue accepting only y for yes and n for no. If they select yes loop again adding one to the count. If they select no, print the number of program loops that were run. If they do not enter a yes or no, repeat the input until they do. Note: You'll need to print a blank line after reading the input.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!