[swift] 70. repeat while

RudinP·2023년 10월 26일
0

Study

목록 보기
97/227

repeat while

  • do while과 동일한 형태
  • 일단 실행 후 조건 체크
  • 큰 차이점은 없으나 실행 순서가 다름
var count = 11
let max = 10
repeat{
	count += 1
    print("\(count)")
} while count < max

//12
profile
곰을 좋아합니다. <a href = "https://github.com/RudinP">github</a>

0개의 댓글