def f( x ) a = x * x return a end i = 1 while i <= 10 do printf( "%dの二乗は%dです\n" , i , f( i ) ) i += 1 end