[Swift] 반복문 !
반복문을 빼놓을 수 없겠죠? // for and while loops // for loopvar names = ["apple","banna","cherry","dole","fineapple","goody","honey"]for var x=0;x> change to repeat whilex = 0repeat { print(x) x++}while(x < 100 ) // Dictionary With loop var states = ["NJ":"New Jersey","CA":"California"] for (abbrev,state) in states { print(abbrev) print(state) }
2016.02.10