| /home/chloe/ASDV-Java/MP1_ChloeFontenot/src/main/java/com/chloefontenot/mp1_chloefontenot/Cylinder.java |
package com.chloefontenot.mp1_chloefontenot;
import java.util.Scanner;
@author
public class Cylinder {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.print("Enter the radius and length of a cylinder: ");
double radius = input.nextDouble();
double length = input.nextDouble();
double area = radius * radius * 3.14159;
double volume = area * length;
System.out.println("The area is " + area);
System.out.println("The volume of the cylinder is " + volume);
}
}