Ask Question
27 October, 02:46

Write a recursive method int power (int i, int j which determines teh result of i^j where j>=0

+2
Answers (1)
  1. 27 October, 03:16
    0
    Int power (int i, int j)

    {

    if (j = = 0) / / base case

    return (0);

    return (i * power (i, j - 1));

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a recursive method int power (int i, int j which determines teh result of i^j where j>=0 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers