Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2e0f1d60ab
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.304 kb
lenght = int(raw_input("Enter length: "))
width = int(raw_input("Enter width: "))
screenWidth = 80
padding = ' ' * ((screenWidth - lenght) / 2)
topRow = padding + '+' + '-' * (lenght - 2) + '+'
fillRows = padding + '|' + ' ' * (lenght - 2) + '|'
print topRow
print fillRows * (width - 2)
print topRow
Jump to Line
Something went wrong with that request. Please try again.