rápido de 1 a 01

import Foundation

for myInt in 1 ... 3 {
    print(String(format: "%02d", myInt))
}
Crowded Caterpillar