Playgrounds'플레이그라운드'

Playgrounds '플레이그라운드' 5.

김동준. 2024. 5. 15. 13:24

'코드'

for 반복문 사용하여 명령을 순서대로 반복해 보세요.

주변에 있는 보석을 모아보세요.

for i in 1 ... 4 {

moveForward()

collectGem()

}

turnRight()

for i in 1 ... 4 {

moveForward()

collectGem()

}

turnRight()

for i in 1 ... 4 {

moveForward()

collectGem()

}

turnRight()

for i in 1 ... 4 {

moveForward()

collectGem()

}