# coding: utf-8 puts "ケーキを何人で食べますか?" x = gets.to_i puts "直径何cmですか?" y = gets.to_i kotae = y * 3.14 / x printf("周りの長さを%dcmごとに切ると平等になります\n",kotae)