mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-26 21:58:56 +01:00
comments modified
This commit is contained in:
parent
9434ab9dc9
commit
12b8ffd162
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
# Mathematical representation: n! = n * (n - 1) * (n - 2) * ... * 1
|
||||
|
||||
#
|
||||
# Non-recursive approach
|
||||
# Non-recursive and non-iterative approach
|
||||
#
|
||||
|
||||
def factorial(number)
|
||||
|
|
Loading…
Reference in a new issue