1import java.lang.Math;
2
3class Gfg {
4
5 // driver code
6 public static void main(String args[])
7 {
8 double a = 30;
9 double b = 2;
10 System.out.println(Math.pow(a, b));
11
12 a = 3;
13 b = 4;
14 System.out.println(Math.pow(a, b));
15
16 a = 2;
17 b = 6;
18 System.out.println(Math.pow(a, b));
19 }
20