Power Fn Problem


Is my code correct using recursive function ??

Yes it is correct. Also go through the fast power approach. It is an optimized approach .