Calculate the Area and Circumference of a circle based on its radius
{Formula :- Area of Circle = (3.14*radius^2) (Assuming as pi = 22/7 ~= 3.14)
Circumference of Circle = (2*3.14*radius)}
Input is Shown Below :
Code :
# Lets Find the Area & Circumference of a Circle
Output is Shown Below :
Explanation:
- A variable a is taken for user input value
- And we simply print the area of circle using direct formula inside it
- And we simply print the circumference of circle using direct formula inside it
- At last, we can see the results showing the calculated answer according to the formula typed inside them


Comments
Post a Comment