def check( x ) if x % 2 == 0 then printf( "%dは偶数です\n" , x ) else printf( "%dは奇数です\n" , x ) end end i = gets.to_i check( i )