The square of a number

Report a typo

Write a function named square that takes one number and returns the square of this number.

Use the provided template.

Sample Input 1:

5

Sample Output 1:

25
Write a program in Kotlin
// write your code here

/* Do not change code below */
fun main() {
val number = readLine()!!.toInt()
println(square(number))
}
___

Create a free account to access the full topic