write a program to read the radius and height of a cylinder & calculate it's area using the following formula A= 2πthe + 2πr2
Answers
Answered by
1
import math
r = float(input("enter radius: "))
h = float(input("enter h: "))
pi = math.pi
a = (2 * pi * r * h) + (2 * pi * (math.pow(r, 2)))
print(f"area: {a:.2f}")
Similar questions