def whileLoop { var i = 1 while (i <= 3) { println(i) i += 1 } } whileLoop