Edit typos and grammar and add python files
This commit is contained in:
parent
c1222a8103
commit
991caf0521
16 changed files with 285 additions and 3 deletions
13
thinkcspy/Chapter-2-Exercises/Python-Files/problem9.py
Normal file
13
thinkcspy/Chapter-2-Exercises/Python-Files/problem9.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 2
|
||||
# Problem 9
|
||||
|
||||
width = input('What is the width of the rectangle?')
|
||||
w = int(width)
|
||||
|
||||
height = input('What is the height of the rectangle?')
|
||||
h = int(height)
|
||||
|
||||
area = w*h
|
||||
|
||||
print('The area of the rectangle with a width of', w, 'and a height of', h, 'is', area, '.')
|
||||
Loading…
Reference in a new issue