93.7k views
1 vote
Write and test a program that computes the area of a circle. This program should request a number representing a radius as input from the user. It should use the formula 3.14 * radius ** 2 to compute the area, and output this result suitably labeled.

User Artoon
by
4.6k points

1 Answer

5 votes

Answer:

radius = float(input('Radius: '))

area = 3.14 * (radius ** 2)

print(f'Area of the circle is: {area}')

User Weeraa
by
3.7k points