Python Program for Program to find area of a circle

Configurare noua (How To)

Situatie

Area of a circle can simply be evaluated using following formula.

Area = pi * r2
where r is radius of circle

Solutie

# Python program to find Area of a circle
 
def findArea(r):
    PI = 3.142
    return PI * (r*r);
 
# Driver method
print("Area is %.6f" % findArea(5));

Tip solutie

Permanent

Voteaza

(8 din 17 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?