Newer
Older
Ruby / #kudamono.rb#
@SAITO Ichitaka SAITO Ichitaka on 16 Sep 2024 184 bytes 2024-09-16 20:09:21
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

kudamono = ["りんご","みかん","バナナ"]
puts "好きな数字を入れて、値をとり出そう"
x = gets.to_i
puts kudamono[x]