
import java.util.Scanner;

public class ComputeArea {

	public static void main(String[] args) {
		//constants
		final double PI = 3.14159;
		//PI=3; can't reassign constants
		
		Scanner input = new Scanner(System.in);
		
		//ask the user for a value
		System.out.print("Enter the radius: ");
		
		//read the value
		//Runtime Error: bad input
		double radius = input.nextDouble();
		System.out.println("Radius = " + radius);
		
		//calculate and print the area:
		//logic error: wrong formula
		double area = radius * radius * PI;
		
		System.out.print("Area = ");
		System.out.println(area);
	}

}
