Computer Science, asked by AdithyaDS2481, 1 month ago

write a program to find volume of a cylinder using scanner clas

Answers

Answered by jassv779
0

Answer:

Java Program

public class cylinder{  

   public static void main(String args[])  

   {  

   int height=38;  

   int radius=35;  

   double pie=3.14285714286;  

   double volume=pie*(radius*radius)*height;  

       System.out.println("Volume of the cylinder="+volume);  

    }  

}  

Output:

Volume of the cylinder=146300.000000133

Explanation:

Similar questions