#!/usr/bin/ruby # coding: utf-8 x=gets.chomp.to_i if x.integer? && 0 <= x && x < 10 then print "りんごパイの角度: " puts 360 / x else puts "エラー" end