Question: please write code for this program, thanks Deliverable 1: Functions The area of a regular pentagon of side of length a is given by: area
Deliverable 1: Functions The area of a regular pentagon of side of length a is given by: area = tan () 22 - 15. (5+2/6) For more information, see http://mathworld.wolfram.com/Regular Pentagon.html Write a program that asks the user for the length of a regular pentagon and returns the area. The purpose of this assignment is to practice using functions, so separate your program into a function main and a second function that does the mathematical calculation. You need to include math.h. After a calculation, your program should ask the user if they would like to try again, and repeat as needed. Submit your program in Moodle. You will need to link the math library to compile it. gcc d1.c -m The function atoi() converts a string to an integer while the function atof() converts a string to a double or float. The function atof() requires the line: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
