Scheme Exercises

back to exercise list       previous     next

Group:     Exercise: 5/48 

Circle-area:  Calculate the area of a circle

Create the function "circle-area" that will be given the radius of a circle and will return its area. Use 3.14159 as the value of PI.
(circle-area 1) => 3.14159
(circle-area 2) => 12.56636