📜  Java 程序找到圆的周长 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.555000             🧑  作者: Mango

代码示例1
@Test
    public void findPerimeterOfTheCircleProgram12() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("Enter the RADIUS of the Circle: ");
        double radius = scanner.nextDouble();
        scanner.close();
        // Logic for printing the PERIMETER of the circle
        System.out.println("Perimeter of the Circle having radius " + radius + (2 * Math.PI * radius));
    }