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

TOP

返回列表