Find out area and circumference of a circle | Python Programming

Tips :

  1. Formula of area of a circle :
  2. pi * radius * radius
  3. Formula of Circumference of a circle :
  4. 2 * pi * radius
  5. 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))

Output :


Hope you like the program, if you have any problem feel free to comment down below. 

Thank You.

Comments

Popular posts from this blog

TOP 10 PROGRAMMING LANGAUAGES COMMING 2021 | ARTICLE

Write a C-program to swap two number:

Print Fibonacci Series using Recursion | C program :