Computer Science, asked by srivastavabhay607, 8 months ago

Java program Input 2 number display calculation of no. With rise to another​

Answers

Answered by princyj140
0

Explanation:

Java Program to Calculate Power of a Number

Given a number N and a power P, the task is to find the exponent of this number raised to the given power, i.e. NP.

Examples:

Input: N = 5, P = 2

Output: 25

Input: N = 2, P = 5

Output: 32

Similar questions