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