while gets do a=$_.downcase if a[0..4].include?("digi") if a[-6..-1].include?("nyo") puts "CORRECT (maybe)" else puts "WRONG!" end elsif a[0..4].include?("petit") if a[-6..-1].include?("nyu") puts "CORRECT (maybe)" else puts "WRONG!" end elsif a[0..4].include?("rabi") puts "CORRECT (maybe)" elsif a[0..4].include?("gema") if a[-7..-1].include?("gema") puts "CORRECT (maybe)" else puts "WRONG!" end elsif a[0..4].include?("piyo") if a[-6..-1].include?("pyo") puts "CORRECT (maybe)" else puts "WRONG!" end end end