Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Collections and Control Flow Control Flow With Loops For In Loops

Bea Santos
seal-mask
.a{fill-rule:evenodd;}techdegree
Bea Santos
iOS Development with Swift Techdegree Student 427 Points

Could someone please just reword this? I think I have a grasp on these concepts but the wording is confusing for me.

Thanks

loops.swift
// Enter your code below
var results: [Int] = [6]
for multiplier in 1...10 {
  (1 * 6)
}

results.append ()

1 Answer

Michael Hulet
Michael Hulet
47,913 Points

It looks like you passed the first part (great job!), so I'm just gonna reword the second. It's basically asking you to multiply multiplier by 6 and append the product to the results array. When your done, results will contain the numbers 6 through 60, counting by 6. You have all the components you need to pass this challenge in your code already, but you just need to put them in the right place 😉 Also, you'll need to start with results as an empty array again (you've put 6 in it to start). You're pretty close, and I'm sure you'll get it!