Question: I need it solved in C++, code blocks please. Write a function named to_pow which takes two variables, number and exponent. It should return the

I need it solved in C++, code blocks please. Write a functionI need it solved in C++, code blocks please.

Write a function named to_pow which takes two variables, number and exponent. It should return the power of the number to the exponent, e.g numberexpent For example: Test printf("%d ", to-pow(4, 2)); 16 print f ("%d ", to-pow(3, 4)); 81 printf("%d ", to-pow( 2, 1)); 2 printf("%d ", to-pow ( 2, 9)); 512 Answer Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!