+ 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 Resposta
+ 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