// While20.kt Copyright (c) Kari Laitinen // http://www.naturalprogramming.com // 2020-10-27 File created. // A for-in loop is used in this example program. fun main() { print( "\n Numbers from 0 to 20 are the following:\n\n " ) var number_to_print = 0 while ( number_to_print <= 20 ) { print( " $number_to_print " ) number_to_print ++ } print( "\n" ) }