RosettaCodeData/Task/Binary-digits/Swift/binary-digits.swift

4 lines
64 B
Swift

for num in [5, 50, 9000] {
println(String(num, radix: 2))
}