Skip to content

Instantly share code, notes, and snippets.

@wellavelino
Created November 28, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellavelino/df083151470232e7360ce1575ad7c15b to your computer and use it in GitHub Desktop.
Save wellavelino/df083151470232e7360ce1575ad7c15b to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
class Lint
def get_even_numbers
numbers_list = [30, 434, 10, 4, 6, 9, 98, 7, 14, 21]
for number in numbers_list
if number % 2 == 0
puts "Even number", number
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment