Q:

Area and perimeter of a circle) Write a program that displays the area and perimeter of a circle that has a radius of 5.5 using the following formula:

0

Area and perimeter of a circle) Write a program that displays the area and perimeter of a circle that has a radius of 5.5 using the following formula:
perimeter = 2 * radius * π
area = radius * radius * π

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

/*
(Area and perimeter of a circle) Write a program that displays the area and perimeter
of a circle that has a radius of 5.5 using the following formula:
					perimeter = 2 * radius * pi
					area = radius * radius * pi
*/
public class Exercise_01_08 {
	public static void main(String[] args) {
		System.out.println("Perimeter = ");
		System.out.println(2 * 5.5 * 3.14159);
		System.out.println("Area = ");
		System.out.println(5.5 * 5.5 * 3.14159);
	}
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now