Wednesday, June 21, 2023

Cylinder volume calculate program

Code of program:

import math
print("calculate cylinder volume")
r=input("r=")
r=float(r)
h=input("h=")
h=float(h)
volume=math.pi*(r**2)*h
print("volume=")
print(volume)

No comments:

Post a Comment