Skip to content

Commit 08f927b

Browse files
authored
Create Corners.py
1 parent 0f5e928 commit 08f927b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Training/Corners.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
'''
2+
3+
Input:
4+
4
5+
6+
Ouput:
7+
* *
8+
9+
10+
* *
11+
12+
'''
13+
14+
n=int(input())
15+
for i in range(n):
16+
for j in range(n):
17+
if i==0 and j==0 or i==0 and j==n-1 or i==n-1 and j==0 or i==n-1 and j==n-1:
18+
print("*",end="")
19+
else:
20+
print(" ",end="")
21+
print()

0 commit comments

Comments
 (0)