#while문 : 조건이 참True인 동안 명령을 계속 반복한다
'''
while 조건:
반복할 명령
'''
a = 3
while a > 0:
print(a)
a = a - 1
print('-----')
b = 1
while b <= 15:
print(b)
b += 2 #b = b + 2
print('----문제----')
battery = 100
while battery > 0:
print('배터리 잔량:', battery, '%')
battery = battery - 15
print("전원이 꺼졌습니다")
To embed this project on your website, copy the following code and paste it into your website's HTML: