This preview shows page 1. Sign up to view the full content.
Unformatted text preview: double r = readDouble("Enter radius: "); //* Prompts for radius double a = PI*r*r; //* Computes the area by the formula println("The area of the circle is " + a + "."); } /* constant PI */ private static final double PI = 3.1415926535897932; }...
View Full Document
- Winter '07