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
Social Sciences,
3 months ago
Computer Science,
3 months ago
Math,
3 months ago
English,
7 months ago
Math,
7 months ago
Science,
1 year ago
Math,
1 year ago
Biology,
1 year ago