Write a program that reads in the radius and length of a cylinder and computes the area

Question:

Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas:
area = radius * radius * π
volume = area * length
Here is a sample run:
Enter the radius and length of a cylinder: 5.5 12 The area is 95.0331 The volume is 1140.4

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: