Java 幂运算

1 public class Operator {
2     public static void main(String[] args) {
3         double num = Math.pow(3,2);
4         System.out.println(num); //num =9
5     }
6 }

 

posted @ 2021-11-22 21:21  AIHHUAO  阅读(698)  评论(0)    收藏  举报