Computer Science, asked by bushra6049khan, 7 months ago

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 valeriy69
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}")

\small\mathsf\color{lightgreen}useful?\: \color{white}\mapsto\: \color{orange}brainliest

Similar questions