Kotlin Programming

Hands On No. 2 : To find the maximum and minimum of three numbers

Resources
Source Code

fun main() {
    val number1 = 12
    val number2 = 10
    val number3 = 19
    
    println("Three numbers are: $number1,$number2,$number3")
    val maximum = maxOf(number1, number2, number3)
    val minimum = minOf(number1, number2, number3)
    println("Maximum of above three numbers: $maximum")
    println("Minimum of above three numbers: $minimum")
    
}