We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675a287 commit 0a2d1e6Copy full SHA for 0a2d1e6
Area_of_a_Circle.py
@@ -1,11 +1,11 @@
1
# Taking diameter from user
2
-diameter = float(input("Enter the diameter of circle : "))
+diameter = float(input("Enter the diameter of circle: "))
3
4
# Taking diameter measure unit from user
5
-unit = input("Enter the measure unit of diameter (e.g. in, cm) : ")
+unit = input("Enter the measure unit of diameter (e.g. in, cm): ")
6
7
# Finding area of a circle using ( A = 1/4 * /\ * D*D ) formula
8
area = ((1 / 4) * (22 / 7) * (diameter * diameter))
9
10
# Printing the area
11
-print("Area of circle is : ",area,unit+"2")
+print("Area of circle is: ",area,unit+"2")
0 commit comments