write a program to find volume of a cylinder using scanner clas
Answers
Answered by
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
Environmental Sciences,
1 month ago
Math,
1 month ago
Science,
8 months ago
India Languages,
8 months ago