結果 : java program using math functions