# coding: utf-8 def sum(x) a = x * 2 return a #メソッドの処理を中止し、指定した返却値を返す。 b = a + 2 c = b + 5 end y = 2 printf("%d\n",sum(y))