Newer
Older
Ruby / nedan_w.rb
@TOGASHI Yuto TOGASHI Yuto on 13 Sep 2021 180 bytes 2021-09-13 02:01:59
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

nedan = [50, 100, 150, 200]
i = 0

while i < nedan.length
  printf("%dつ目の値段は%d円です。\n", i+1, nedan[i])
  i += 1
end