Pow

Report a typo

You are given two floating-point numbers: a and b.

Calculate and output the value of the expression ab a^b .

Note: use double variables for a and b.

Input data format:

Two floating-point numbers in one line.

Output data format:

The result of the expression.

Sample Input 1:

2 3

Sample Output 1:

8.0

Sample Input 2:

2 1.02

Sample Output 2:

2.027918959580058
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic