MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / power

Function power

Lab_07/power.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace std;
5
6long long int power(long long int x, long long int y)
7{
8 if (y == 0)
9 return 1;
10 else
11 return x * power(x, y - 1);
12}
13
14int main1()
15{

Callers 1

main1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected