Question: You are writing a console app in Kotlin that processes test entered by the user. If the user enters an empty string, the program exits. Which kind of loop would work best for this app? Keep in mind that the loop is entered at least once

  1. a do..while loop
  2. a for loop
  3. a while loop
  4. a forEach loop

Answer: The correct answer of the above question is Option A:a do..while loop