Newer
Older
Ruby / hello6.rb
@SAITO Azuma SAITO Azuma on 19 Jul 356 bytes 2025-07-19 15:54:13
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
print("こんにちは!")
a = gets.to_i
print("これからクイズを出します\n")
a = gets.to_i
puts "1:昭和"
puts "2:平成"
puts "3:令和"
while true
  print "答を入力: "
  kotae = gets.chomp.to_i
  if kotae == 1
    puts "ブブー!不正解..."
    break
  elsif kotae == 2
    puts "ブブー!