top of page

Data Scientist Program


Free Online Data Science Training for Complete Beginners.

No prior coding knowledge required!

finding the circumference, Circumference, Area and Diameter Of a Circle

""" Author: Jackson I. Gargar Date: 1/12/2022 Assignment: Task: How to find the Circumference, Area and Diameter Of a Circle. """

Storing the Pie value as variable

PI = 3.14

request the user to import the radius

radius = float(input(' Please Enter the radius of a circle: '))

#formular for finding the circumference of a circle circumference = 2 * PI * radius

the formula for finding the area of a circle

The are is equal to PI X radius(r * r)

area = PI * radius * radius

The formula for finding the Diameter of a Circle

(the Diameter is equal to 2 times the radius)

diameter = 2 * radius

Printing the Diameter

print("Diameter Of a Circle = %.2f" %diameter)

#printing the Circumference print("Circumference Of a Circle = %.2f" %circumference)

#Printing the area of a circle print("Area Of a Circle = %.2f" %area)


Recent Posts

See All
bottom of page