Computer Science, asked by Surjo09, 4 months ago

Find the output:

[2]

import java.util.Scanner;

int num1=8, num2=27;

System.out.println(Math.pow(num1,2));

System.out.print(Math.sqrt(num2)); ​

Answers

Answered by allysia
1

Answer:

64

5.1961524

Explanation:

Math.pow(a,b) will raise a to the power of b and Math.sqrt(c) will return square root of c.

PS: there'll be a semicolon after num1=8 for this to be the output otherwise you'll have an error.

Similar questions