A

Admin • 828.43K Points
Coach

Q. Which loop type is most suitable for menu-driven programs where the menu must be shown at least once?

  • (A) for
  • (B) while
  • (C) do-while
  • (D) foreach

Explanation by: Admin
do-while ensures the menu is shown at least once before the condition is checked.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.