返回列表 發帖
  1. public class n {

  2.         static double myPlus(double a, double b)

  3.         {
  4.                 return a*b/2;
  5.         }
  6.        
  7. public static void main(String[] args) {

  8. System.out.println("底7高5的三角形的面積為"+myPlus(5,7));
  9. }

  10. }
複製代碼

TOP

返回列表