Write a java program to calculate the 10th power of a number by using math.pow function.
Answers
Answered by
2
package Brainly_Answers;
import java.util.Scanner;
class test
{
public static void main (String[]args)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter number: ");
double n = sc.nextDouble();
System.out.println("The 10TH power of the number is: "+(Math.pow(n,10)));
}
}
Similar questions
Social Sciences,
1 month ago
Science,
1 month ago
Math,
1 month ago
Math,
2 months ago
Environmental Sciences,
2 months ago
English,
9 months ago