The result when the previous program is executed.

seen from Romania
seen from United States

seen from Malaysia

seen from Sweden
seen from South Korea

seen from United States

seen from Malaysia
seen from United States

seen from Australia
seen from United States

seen from Germany

seen from Poland

seen from United States
seen from Hong Kong SAR China
seen from United States

seen from Lebanon

seen from United States
seen from Uruguay
seen from Italy
seen from United States
The result when the previous program is executed.
2.2 Reading Input from the Console
import java.util.Scanner; // Scanner is in the java.util package
public class ComputeAreaWithConsoleInput
{
public static void main(String[] args)
{
// Create a Scanner object
Scanner input = new Scanner(System.in);
// Prompt the user to enter a radius
System.out.print("Enter a number for radius: ");
double radius = input.nextDouble();
// Compute area
double area = radius * radius * 3.14159;
// Display results
System.out.println("The area for the circle of radius " +
radius + " is " + area);
}
}