Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 16556b3

Browse files
Merge pull request #36 from Umesh-01/Umesh-01-patch-1
Update Area_of_a_Circle.py
2 parents 2acc520 + 0a2d1e6 commit 16556b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Area_of_a_Circle.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Taking diameter from user
2-
diameter = float(input("Enter the diameter of circle: "))
2+
diameter = float(input("Enter the diameter of circle: "))
33

44
# Taking diameter measure unit from user
5-
unit = input("Enter the measure unit of diameter (e.g. in, cm): ")
5+
unit = input("Enter the measure unit of diameter (e.g. in, cm): ")
66

77
# Finding area of a circle using ( A = 1/4 * /\ * D*D ) formula
88
area = ((1 / 4) * (22 / 7) * (diameter * diameter))
99

1010
# Printing the area
11-
print("Area of circle is: ",area,unit+"2")
11+
print("Area of circle is: ",area,unit+"2")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /