Kotlin infinite loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Kotlin infinite loop

How to code a infinite loop & why this give output check internet connection. Anybody can help me ? https://code.sololearn.com/cspa1e3UiNA9/?ref=app

3rd Oct 2021, 2:32 PM
Akash Agrawal
Akash Agrawal - avatar
1 Answer
+ 1
It outputs "check Internet connection" because you have infinite loop. Sololearn tries to get an output for you, but it can't.. So no infinite loop here on sololearn with Kotlin...
3rd Oct 2021, 2:48 PM
Aleksei Radchenkov
Aleksei Radchenkov - avatar