Newer
Older
program / def.rb
@houtin houtin on 25 Sep 2021 253 bytes いったん同期
# coding: utf-8
def check(ans)
 choice = gets.to_i
  if ans == choice
    puts"正解です"
  else
    puts"不正解です"
  end
end

puts"第一問:ぼうしの中に入っている動物はなに?"
puts"1.うし 2.はと 3.うさぎ"
check(1)