def fact(n: Int): Int = if (n == 0) 1 else n * fact(n - 1)
factorial :)
Tags: factorial (3) math (10)