Find out area and circumference of a circle | Python Programming
Tips :
- Formula of area of a circle :
- pi * radius * radius
- Formula of Circumference of a circle :
- 2 * pi * radius
- where, pi = 3.14
Code :
pi = 3.14
print(' Welcome user')
r = float(input('Enter the radius of the circle :- '))
area = pi * pow(r,2)
print('\nArea of the circle :- '+ str(area))
circum = 2*pi*r
print('Circumference of the circle :- '+ str(circum))

Comments
Post a Comment
Give your feedback!
DO NOT SPAM !!
NO THIRD PARTY PROMOTIONAL LINK !!!! (else comment will be deleted.)