返回列表 發帖
  1. public class Ch65
  2. {
  3.         static float tri(float x,float y)
  4.         {        return x*y/2;
  5.         }       
  6.         public static void main(String[] args)
  7.         {
  8.                 System.out.println("底894公分,高1678公分的三角形,面積為"+tri(7,5)+"平方公分。");
  9.         }
  10. }
複製代碼

TOP

返回列表