#!/usr/bin/env ruby # -*- coding: utf-8 -*- ans = "田沢湖" input = "" puts "日本一深い湖は何でしょう?" while input != ans input = gets.chomp if input != ans puts "違います。もう一度チャレンジ!" end end puts "正解です!"