Write the syntax for a dowhile loop that executes as long as

Write the syntax for a do/while loop that executes as long as a character variable has a value of either \"y\" or \"Y\". (Assume the character variable is already declared, and give it a valid identifier name of your choosing, given that its purpose is to store the user\'s response to the question \"do you wish to input another set of data?\". You do not need to include any statements in the braces for the loop.)

Solution

5) //Assuming character variable \"response\" is already declared
do{
....
}while(response==\'y\' || response==\'Y\');

 Write the syntax for a do/while loop that executes as long as a character variable has a value of either \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site