#!/usr/vin/env ruby # -*- coding: utf-8 -*- nedan = [メロン,カレー,肉じゃが] i = 0 for n in nedan printf("%dつ目の値段は%s円です。\n",i,n) i += 1 end