Calculate total surface area of Cylinder in java

In this post, we will see how to calculate total surface area of Cylinder in java.

Formula of calculating total surface area of Cylinder is:

Surface area of Cylinder = 2 *Π * r * r + 2 *Π * r * h
Where r is radius of cylinder and h is height of cylinder

Cylinder

💻 Awesome Tech Resources:
  • Looking for ⚒️ tech jobs? Go to our job portal.
  • Looking for tech events? Go to tech events 🗓️ Calendar.️

Here is java program to calculate total surface area of Cylinder. We are using scanner class to take input from user in below program.

When you run above program, you will get below output

Enter the radius of cylinder :
4
Enter the height of cylinder :
3
Total surface area of cylinder is: 175.92918860102841

That’s all about how to calculate total surface area of cylinder in java.


import_contacts

You may also like:

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.