Pow

Report a typo

There are 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 each on a separate 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 Kotlin
import kotlin.math.*

fun main() {
// put your code here
}
___

Create a free account to access the full topic