카테고리 없음

swift - while, repeate while loop

행복하게사는게꿈 2021. 1. 4. 18:51

while, repeat while loop

 

var num = 0
while num < 100 {
    num += 1
}

num
num = 0

repeat {
    num += 1
} while num < 100

저작자표시 (새창열림)