Computer Science, asked by khushikumari711089, 1 month ago

Write a program using function name power() to accept two number than print first number to the power of second number ex. a without using Math.pow();​

Answers

Answered by swatigund022
0

Answer:

Given two integers x and n, write a function to compute xn. We may assume that x and n are small and overflow doesn’t happen.

Explanation:

Input : x = 2, n = 3

Output : 8

Similar questions