11. (TCO 4) Which of the following expressions is correct if you want to end a w
ID: 3657567 • Letter: 1
Question
11.(TCO 4) Which of the following expressions is correct if you want to end a while-loop when the character variableansweris anything other than the character 'y' in either upper or lower case?(Points : 5) while(answer == 'y' && answer == 'Y')while(answer == "y" && answer == "Y")
while(answer == 'y' || answer == 'Y')
while(answer == "y" || answer == "Y") 11.(TCO 4) Which of the following expressions is correct if you want to end a while-loop when the character variableansweris anything other than the character 'y' in either upper or lower case?(Points : 5)
Explanation / Answer
correct answer is: while(answer == 'y' || answer == 'Y')
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.