Page 151 - CA_Blue( J )_Class9
P. 151
You will get the following output:
Program 5 Write a program to demonstrate the use of the Math.pow() method.
1 class Power
2 {
3 public static void main(String[] args)
4 {
5 System.out.println("pow(3, 3)= "+ Math.pow(3, 3));
6 System.out.println("pow(4, 9)= "+ Math.pow(4, 9));
7 System.out.println("pow(2, 5)= "+ Math.pow(2, 5));
8 }
9 }
You will get the following output:
Mathematical Library Methods 149

