2.28 (Diameter, Circumference and Area of a Circle) Write an application that inputs from the user the radius of a circle as an integer and prints

2.28 (Diameter, Circumference and Area of a Circle) Write an application that inputs from the user the radius of a circle as an integer and prints the circle?s diameter, circumference and area using the floating-point value 3.14159 for ?. Use the following formulas (r is the radius): diameter = 2r circumference = 2?r area = ?r2. Do not store the results of each calculation in a variable. Rather, specify each calculation as the value that will be output in a System.out.printf statement.

The post 2.28 (Diameter, Circumference and Area of a Circle) Write an application that inputs from the user the radius of a circle as an integer and prints first appeared on My Writers.

Reference no: EM132069492

WhatsApp
Hello! Need help with your assignments? We are here

GRAB 25% OFF YOUR ORDERS TODAY

X