Challenge: Factorial of a Given Number

Solve the challenge of finding the factorial of a given number.

Problem

Write a function that takes a number as a parameter and returns the factorial of that number using Kotlin.

Get hands-on with 1300+ tech skills courses.