A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

Write a program in kotlin to print the following statment 10 times
Q:

Write a program in kotlin to print the following statment 10 times

0

Write a program in kotlin to print the following statment 10 times

n. Practice makes a man perfect.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Solution:

fun main(args : Array<String>)  {  
	repeat(10) { i ->
	println("${i + 1}. Practice makes a man perfect.")
	}
}

Output:

1. Practice makes a man perfect.
2. Practice makes a man perfect.
3. Practice makes a man perfect.
4. Practice makes a man perfect.
5. Practice makes a man perfect.
6. Practice makes a man perfect.
7. Practice makes a man perfect.
8. Practice makes a man perfect.
9. Practice makes a man perfect.
10. Practice makes a man perfect.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now