728x90
stride(from: , to: , by: ) 를 사용하여 증감을 설정할 수 있다.
let minutes = 60
let interval = 5
for i in stride(from: 0, to: minutes, by: interval) {
print(i)
}
728x90
stride(from: , to: , by: ) 를 사용하여 증감을 설정할 수 있다.
let minutes = 60
let interval = 5
for i in stride(from: 0, to: minutes, by: interval) {
print(i)
}