Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming usage

Packages and imports

Import the sin function

Report a typo

Imagine that you have a piece of code that only executes the sin function from the Math library. Please write the minimum code needed to use it and import only the sin function.

fun main(args: Array<String>) {
    val num = sin(34.56)
    println(num)
}
Enter a short text
___

Create a free account to access the full topic