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.