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