adding ignore and first exo in ruby

This commit is contained in:
piks3l 2017-06-21 00:53:55 +02:00
parent 7e6ef4c4c7
commit 89a7d27ed5
3 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
notes\ cours\ python

1
ruby_algo/README.md Normal file
View file

@ -0,0 +1 @@
Resolution for projet euler in ruby

4
ruby_algo/ex1.rb Normal file
View file

@ -0,0 +1,4 @@
# Solution for the sum of all number multiple of 3 or 5 between 1 and 999
sum = (1..999).select {|n| n % 5 == 0 || n % 3 == 0}
sum.inject(:+)