In Java, Pi can be used as a Pre-defined constant “Math.PI” and a User-defined constant. For both methods, the value of Pi is set as “3.14”.
確定! 回上一頁