A

Admin • 833K Points
Coach

Q. Which keyword is used to declare a loop in Kotlin?

  • (A) loop
  • (B) while
  • (C) iterate
  • (D) foreach
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Kotlin supports while and for loops. 'while' is a standard loop keyword.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.