#!/usr/vin/env ruby # -*- coding: utf-8 -*- food = [ソフト麺,カレー,ご飯,パン] i = 0 while i < food.length printf("%d位は%dです。\n",i+1,food[i]) i += 1 end