1
1
Fork 0
AtomicKotlinCourse/Programming Basics/Looping & Ranges/Exercise 1/task.md

259 B

Looping & Ranges (#1)

Using a for loop, create a function that calculates the factorial of its parameter (n! = 1 * 2 * ... * n).

Put an L at the end of a number literal or use .toLong() to convert an integer constant or expression to type Long.