fungsi rekursif faktorial Kotlin

fun factorial(n: Int): Int =
    if(n<=1){
        1
    }else{
        factorial(n-1)* n 
    }
Sergio Hurtado