i = 1 #시작할 번호
#while문은 조건이 참이 되면 실행문을 도는 반복문
while i<11:
print(i)
i=i+1
print("---while문 거꾸로 사용해보기---")
i = 10 #시작할 번호
while i>0: #조건: i가 0보다 클 때까지 (=1부터는 해당 X)
print(i) #실행문
i=i-1 #실행문을 거짓으로 만들기 위해
To embed this project on your website, copy the following code and paste it into your website's HTML: