Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java Program to find the perimeter of the circle

@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));
	}
 
PREVIOUS NEXT
Tagged: #Java #Program #find #perimeter #circle
ADD COMMENT
Topic
Name
9+2 =