1.

Write the program toin python To find the area of the circle

Answer» Area of a circle can simply be evaluated using following formula.
Area = pi * r2where r is radius of circle 
Python3filter_noneeditplay_arrowbrightness_4\t# Python program to find Area of a circle \xa0\xa0def findArea(r): PI = 3.142 return PI * (r*r); \xa0\xa0# Driver method print("Area is %.6f" % findArea(5)); \t


Discussion

No Comment Found