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
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
Math,
16 days ago
Social Sciences,
16 days ago
Hindi,
16 days ago
Political Science,
1 month ago
Math,
1 month ago
Biology,
9 months ago