mirror of
https://github.com/TheAlgorithms/Ruby
synced 2025-02-03 08:46:02 +01:00
Update sol1.rb
follow the guideline
This commit is contained in:
parent
7804fad30f
commit
fa6ebf5f78
1 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,8 @@ def is_prime?(number)
|
|||
result = value
|
||||
end
|
||||
|
||||
def solution?(max_total)
|
||||
def solution?()
|
||||
max_total = 2000000
|
||||
sum = 1
|
||||
num = 2
|
||||
value = 1
|
||||
|
@ -38,5 +39,5 @@ def solution?(max_total)
|
|||
result = sum
|
||||
end
|
||||
|
||||
answer = solution?(2000000)
|
||||
answer = solution?()
|
||||
p answer
|
Loading…
Add table
Reference in a new issue