Answers for "kotlin while for loop example"

0

while loop kotlin

var i = 1
while (i < 5) { 	// while loop
	println(i)
	i++
}					

var i = 1
do { 				// do-while loop
	println(i)
	i++
} while (i < 5)
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language