mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-01-14 08:01:05 +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
|
# Mathematical representation: n! = n * (n - 1) * (n - 2) * ... * 1
|
||||||
|
|
||||||
#
|
#
|
||||||
# Non-recursive approach
|
# Non-recursive and non-iterative approach
|
||||||
#
|
#
|
||||||
|
|
||||||
def factorial(number)
|
def factorial(number)
|
||||||
|
|
Loading…
Reference in a new issue