Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 304 Bytes
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
Something went wrong with that request. Please try again.