Ruby Examples
This commit is contained in:
11
level1/07.rb
Executable file
11
level1/07.rb
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/ruby
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
=begin
|
||||
1~100 중 3의 배수만 출력
|
||||
=end
|
||||
|
||||
(1..100).each do |item|
|
||||
puts item if (item % 3 == 0)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user