1
1
Fork 0
AtomicKotlinCourse/Functional Programming/Recursion/Exercise 1/task.md

278 B

Recursion (#1)

Write a tail recursive function called simulation() that takes a String called group and an Int called level. It displays "Simulation: $group Reality: level", then recursively calls itself with level - 1 as long as level is greater than zero.