71.2k views
2 votes
Write a program on replit that takes an input "r" and prints the area of a circle with radius "r" (in python)

Hint: use 3.14 for pi

1 Answer

6 votes

r = float(input("What's the radius of your circle? "))

print("The area of a cirlce with radius {} is {}".format(r, (3.14*(r**2))))

I hope this helps!

User MadhaviJ
by
4.4k points