Computer Science, asked by ramsmedicine, 2 months ago

5) Write a python program to find the area and circumference of a circle.

Hint ( AREA= 3.14 * r * r , CIRCUMFERENCE = 2 * 3.14 * r, Where r= 2)


PLS ANSWER

Answers

Answered by ritusingh8274
6

Answer:

Python Program to find Diameter Circumference and Area Of a...

Diameter of a Circle = 2r = 2 * radius.

Area of a circle is: A = πr² = π * radius * radius.

Circumference of a Circle = 2πr = 2 * π * radius.

Explanation:

please mark as brainlist answer and thanked also

Answered by Anonymous
33

Area and circumference of a circle - Python

We would take a user float input first, to enter the value of radius. We know that when we want the user to type in a decimal value, we use \tt{float(input())} function.

After that we know that the formula of area of circle, so we will take area of circle formula. After taking area of circle formula we will display the answer of area of circle.

After this, we know that the formula of circumference of circle, so we will take circumference of circle formula. After taking the formula of circumference we will display the answer of circumference of circle.

Finally, we will display the result of area and circumference of a circle.

\rule{300}{1}

The Program

import math

r=float(input("Enter the value of radius:"))

Area=3.14*r*r

print("The area of circle is", Area)

Circumference=2*3.14*r

print("The circumference of circle is", Circumference)

\rule{300}{1}

Sample Run

Enter the value of radius: 4

The area of circle is 50.24

The circumference of circle is 25.12

Similar questions