def f( x , y ) a = x * x + y * y return a end i = gets.to_i j = gets.to_i printf( "iが%d,jが%dの場合,値は%dです\n" , i , j , f( i , j ) )