We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc12539 commit 704f273Copy full SHA for 704f273
README.md
@@ -7,4 +7,5 @@ Copyright (c) 2020 Ercan Ersoy
7
## Examples List
8
9
* [Hello World](hello-world)
10
-* [User Input](user-input)
+* [User Input](user-input)
11
+* [Circle Calculator](circle-calculator)
circle-calculator/circle-calculator.py
@@ -0,0 +1,12 @@
1
+pi = 3.14
2
+
3
+radius = int(input("Radius of circle: "))
4
5
+circumference = radius * 2 * pi
6
+area = pow(radius, 2) * pi
+print("Circumference: ", end="")
+print(circumference)
+print("Area: ", end="")
12
+print(area)
0 commit comments