Print a string exactly ten times

Report a typo

Write a program that reads a line and then prints it 10 times, each on a new line. A line may include multiple words separated by spaces.

Sample Input 1:

I will not use copy-paste!

Sample Output 1:

I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
I will not use copy-paste!
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic