Programa Java para encontrar el poder de un número
@Test
public void powerOfTheNumberProgram13() {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter any NUMBER: ");
int number = scanner.nextInt();
System.out.println("Enter the POWER: ");
int power = scanner.nextInt();
scanner.close();
// Logic for finding the POWER of number
int powerOfNumber = (int) Math.pow(number, power);
System.out.println("Power of a " + number + "^" + power + ": " + powerOfNumber);
}
Stormy Skylark