foreach i in ([1..5]){ foreach j in (i){print("*")} println(); }