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