Python Program to Find the Volume and Surface Area of a Cone

# Objective: Python program to calculate surface area of cone
# Author: Codesansar
# importing math to use sqrt() function
import math
# Reading radius
radius = float(input("Enter radius of cone: "))
# Reading height
height = float(input("Enter height of cone: "))
# Calculating surface area of cone
area = 3.141592 * radius * (radius + math.sqrt(radius*radius + height*height))
# Displaying area
print("Surface area = ", area)

OUTPUT:

Enter radius of cone: 8
Enter height of cone: 12
Surface area =  563.531361362799
Sharing Is Caring

Leave a Comment