Showing posts with label Compute power. Show all posts
Showing posts with label Compute power. Show all posts

Saturday, July 2, 2022

Compute power

 Compute power

Problem Statement
You are given two numbers n and p. You need to find n raised to the power p.


static int Power(int n,int p)
{
      // Your code her
      if(== 0){
            return 1;
      }
      return n*Power(n,p-1);
}

ads vert

Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody

  Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody < table >      < thead >    ...