iOS Swift Collections and Control Flow Control Flow With Loops Looping Over Ranges

malcolm henry
malcolm henry
467 Points

Second Challenge Answer

var results: [Int] = [6,12,18,24,36,42,48,54,60]

let multipler = 1...10

for multipler in 1...10 { print("(multipler) times 6 is equal to (multipler * 6)") }

  • Always make sure to test in Xcode before bringing over to treehouse; its really picky haha :)