kotlin how to repeat a loop code example Example: kotlin repeat n times repeat(repetitions) { // Do something }