Exercise 1.1: The Circle

Given: a real value, r, for the radius of a circle;
Compose: a let-in statement that returns the area and circumference of a circle of the given radius.
area, circumference :=
        let pi := 3.14159
        in  pi * r * r,
            2.0 * pi * r
        end let


Previous Section