Write a C program to calculate pow(x,n)?

 

Also, the code above can be optimized still by calculating pow(z, (n/2)) only one time (instead of twice) and using its value in the two return() expressions above.

1,569 total views, 5 views today

Leave a Reply