13 lines
179 B
Ruby
Executable File
13 lines
179 B
Ruby
Executable File
#!/usr/bin/ruby
|
|
# -*- coding: utf-8 -*-
|
|
|
|
=begin
|
|
문자열과 반복 횟수를 받아 반복 출력하는 메서드
|
|
=end
|
|
|
|
def repeat(s, i)
|
|
s * i
|
|
end
|
|
|
|
puts repeat("도깨비", 6)
|