Remove .md and image files and move python files into main chapter folders
This commit is contained in:
parent
5978779a9a
commit
67806dab6a
159 changed files with 0 additions and 4562 deletions
11
thinkcspy/Chapter-2-Exercises/problem8.py
Normal file
11
thinkcspy/Chapter-2-Exercises/problem8.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 2
|
||||
# Problem 8
|
||||
|
||||
r_string = input('Enter the radius of the circle')
|
||||
r = int(r_string)
|
||||
pi = 3.14
|
||||
|
||||
area = pi * r**2
|
||||
|
||||
print('The approximate area of the circle with', r, 'radius is', area, '.')
|
||||
Loading…
Reference in a new issue