public class AreaOfCircle { public static void main(String[] args) { double r; // variable containing the radius double area; // variable containing the area r = 4; // Give the radius area = 3.1415 * r * r; // Compute the area of the circle System.out.print("The radius = "); System.out.println(r); System.out.print("The area = "); System.out.println(area); } }