본문 바로가기
프로그램

[파이썬] 문제 : 이중 while True문

by 오디세이99 2022. 11. 21.
728x90
반응형
tot = 0  # 모두 종료하기 위한
w1 = 0   # 첫번째 while count
while(True):
    tot += 1
    print('W1=',w1)
    w2 = 0   # 두번째 while count
    while(w2 < 20):
        w2 += 1
        print('   W2=',w2)
    if tot > 100:
        break
728x90
반응형

댓글