java 有提供次方運算, 您可以參考java.lang.math pow( )用法: static pow(double a, double b) 例如: 求取3 的5 次方則寫成math.pow(3, 5) , 將會得到 ...
確定! 回上一頁