Files
  • main.rb
main.rb
1
2
3
4
5
6
7
8
9
10
11
(1..100).each do |num|
    if num % 15 == 0
        puts "FizzBuzz"
    elsif num % 5 == 0
        puts "Buzz"
    elsif num % 3 == 0
        puts "Fizz"
    else
        puts num
    end
end
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]