Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """Jayson Roy Tai, jtai406, 932126641,
- calculating the surface area and the volume of a cone from user input data"""
- import math
- print("#" * 34)
- print(" " * 7 + "Right Circular Cone \nSurface Area and Volume Calculator")
- print("#" * 34)
- print()
- radius = int(input("Radius: "))
- height = int(input("Height: "))
- surface_area = math.pi * radius * (radius + math.sqrt(radius ** 2 + height **2))
- volume = (1/3) * math.pi * radius ** 2 * height
- print()
- print("Suraface Area:", round(surface_area, 4))
- print("Volume:", round(volume, 4))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement