Python – program to display the CONE Volume by taking the Radius and Height as input from the user.

radius = float(input("Enter the radius of the cone: "))
height = float(input("Enter the height of the cone: "))
volume = (1/3) * 3.14 * (radius**2) * height
print(f"The volume of the cone with radius {radius} and height {height} is {volume:.2f}
cubic units.")
Scroll to Top
logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.