I need help with this problem. I have tried writting the program, i just can not get it to run properly.
Problem is:
Create a function named 'circle_area' that will find the area of a circle. This function should have the following prototype:
float circle_area(float radius)
circle_area should return PI*r^2. If passed 3.25 it will return 33.18. If passed 5.0 it should return 78.53, etc.
The main function will call circle_area and pass it a float that you stored in a variable. The value of Pi should be stored in a constant. The main program should display the variable and the area. For example, if radius is 1.0, the main function should display 'The area of a circle with radius 1.0 is: 3.14'. Use the techniques in section 3.7 of the textbook to format your output to 2 decimal places.
Attached is what i have.