Question : swift from 1 to 01
Answered by : crowded-caterpillar-xo733sicd6cc
import Foundation
for myInt in 1 ... 3 { print(String(format: "%02d", myInt))
}
Source : https://stackoverflow.com/questions/25566581/leading-zeros-for-int-in-swift | Last Update : Thu, 18 Jun 20