返回列表 發帖

[模擬考] TQC+ 106

完成" TQC+ 106 "題目

  1. public class JPA01 {
  2.    
  3.         public static void main(String args[])
  4.         {
  5.                
  6.                 f(-3.2);
  7.                 f(-2.1);
  8.                 f(0);
  9.                 f(2.1);
  10.                
  11.         }

  12.         public static void f(double x) {
  13.                
  14.                 System.out.printf("f(%f) = %.4f ",3*x*x*x+2*x-1);
  15.         }
  16.        





  17. }
複製代碼

TOP

返回列表