추가 '뒤집기'

This commit is contained in:
changu 2018-12-23 20:03:25 +09:00
parent e9e30f6af8
commit c743b1b583
1 changed files with 16 additions and 0 deletions

16
뒤집기 Normal file
View File

@ -0,0 +1,16 @@
a=int(input("숫자입력"))
c=[]
d=0
g=0
while d<a:
e=0
b=[]
while e<a:
e=e+1
g=g+1
b.append(g)
c.append(b)
d=d+1
print(c)
b.reverse()
print(b)