13 lines
No EOL
307 B
Python
13 lines
No EOL
307 B
Python
# 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, '.') |