Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 OutputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started