Files
ruby-examples-1/level1/07.rb
2026-01-15 14:01:21 +09:00

12 lines
146 B
Ruby
Executable File

#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
1~100 중 3의 배수만 출력
=end
(1..100).each do |item|
puts item if (item % 3 == 0)
end