Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input())
- for i in range(num):
- output = ''
- for j in range(num):
- if j == 0 or j == num - 1:
- if i == 0 or i == num - 1:
- output += '+' + ' '
- else:
- output += '|' + ' '
- else:
- output += '-' + ' '
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement