Recursive - Print n numbers - decreasing order

Run Settings
LanguageRuby
Language Version
Run Command
def print_num(n) return 0 if n == 0 puts n n + print_num(n - 1) end print_num(10)
Editor Settings
Theme
Key bindings
Full width
Lines