Redo Programming Exercise 2 from Chapter 3. Use two functions-one to compute the area of a pizza, and one to compute cost per square inch.
Exercise 2:
Write a program that calculates the cost per square inch of a circular pizza, given its diameter and price. The formula for area is A = πr2