# coding: utf-8 kago = ["トマト","きゅうり","なす","ピーマン"] yasai = kago.length i=0 while i < yasai printf("%sを収穫した!残りは%sになった。\n", kago.shift, kago) i += 1 end