Suppose you are writing a program that requires you take different paths depending on the response to a prompt. The prompt has more than two acceptable responses. Which of the following structures would be most appropriate?
(1 point)
Responses
if…then
if…then
While loop
While loop
for loop
for loop
if…then…else
1 answer
The most appropriate structure in this scenario would be "if...then...else". This structure allows for multiple acceptable responses to be handled in a logical and organized manner.