Write a program to Calculate Area of Circle in Python 3
Code:
1 2 3 4 5 6 7 8 9 10 11 |
# Python program to find Area of a circle def findArea(r): PI = 3.142 return PI * (r*r); # Driver method num=float(input("Enter r value:")) print("Area is %.6f" % findArea(num)); |
Output: