#!/usr/bin/env ruby # -*- coding: utf-8 -*- nedan=["500","1000","1500","2000","5000"] i=1 for n in nedan printf("%dつ目の値段は%d円です。\n",i,n) i+=1 end