Question: Please add comments. Thank you! Create a C program (3 points): At the top of the file include the following comments: Your name The purpose
Please add comments. Thank you!
Create a C program (3 points): At the top of the file include the following comments: Your name The purpose (core concept found below) of the program The date created Create functions for: o Finding the factorial of an integer Given a base and an exponent, calculate the power of a number. Do not display the results in these functions. Each function should return a value. o Call both functions from the main function: Ask the user for the number to find the factorial of Ask the user for the number to find the power of, as well as the exponent. Call each method, assigning the results to a local variable. Display the results. Compile and run your code. Submit your source code as a plain text file with a .c extension. Make sure it compiles without error before submitting it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
