Skip to content

Commit 0a2d1e6

Browse files
authored
Update Area_of_a_Circle.py
1 parent 675a287 commit 0a2d1e6

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)