Função recursiva Kotlin
fun factorial(n: Int): Int =
if(n<=1){
1
}else{
factorial(n-1)* n
}
Sergio Hurtado
fun factorial(n: Int): Int =
if(n<=1){
1
}else{
factorial(n-1)* n
}