mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-11-16 19:50:00 +01:00
add ()
This commit is contained in:
parent
ef00820c02
commit
a09e042c4a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ def collatz_conjecture(number)
|
|||
while number > 1
|
||||
if number.even?
|
||||
number /= 2
|
||||
nums.push number
|
||||
nums.push(number)
|
||||
else
|
||||
number = 3 * number + 1
|
||||
nums.push(number)
|
||||
|
|
Loading…
Reference in a new issue