A java program to find the surface area and volume of a cylinder
Answers
Answered by
0
Answer:
public class Main
{
public static void main(String[] args) {
double volume , surface,r=3,h=5;
double a=3.14;
volume =a*r*r*h;
surface=(2*a*r*r) +(2*a*r*h);
System.out.println("volume of cylinder"+ volume);
System.out.println("surface area of cylinder"+ surface);
}
}
Similar questions