What is this in Kotlin fun max(num1 : Int, num2 : Int): Int = if(num1>num2) num1 else num2

All QuestionsCategory: KotlinWhat is this in Kotlin fun max(num1 : Int, num2 : Int): Int = if(num1>num2) num1 else num2
chetan shidling asked 4 years ago

fun max(num1 : Int, num2 : Int): Int = if(num1>num2) num1 else num2

1 Answers
chetan shidling answered 4 years ago

It is function for the if-else statement to find the maximum value.