calcul the area of a circle

Write a program that calculates the area of a circle with a radius = 5. Use an approximate value of pi: pi = 3.14 Print the result to the console as shown below. Expected result: Area: 78.5

Solutions

Solution: 1

pi = 3.14
radius = 5

area = pi*(radius **2)

print("Area: {}".format(area))