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(p == 0){
return 1;
}
return n*Power(n,p-1);
}
Prove your coding skills.This is the best place to expand your knowledge and get prepared for your next interview.
Compute power
Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody < table > < thead > ...