Skip to content

Commit b025d11

Browse files
authored
Merge pull request vJechsmayr#191 from kundan8239/feature/recursive-exponential
recursive alog to calculate exponential
2 parents 482ee01 + 4ec45fc commit b025d11

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Maths/RecursiveExponential.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let recursiveExponential = (x,n) => {
2+
if(n == 0){
3+
return 1;
4+
}
5+
return x * recursiveExponential(x,n-1);
6+
}

0 commit comments

Comments
 (0)