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 trialAleya Adams
19,320 PointsWhat am i doing wrong??
I keep trying and it looks exactly the same...am i overlooking something simple?
for number in 1...7 {
println ("\(number) * 7 = \(number*7)")
}
3 Answers
Aleya Adams
19,320 Pointsfor number in 1..<11 { println ("\number) * 7 = ( number*7)")} I figured it out. Don't forget to make it eleven since it wants it to ten.
Sidharth Kaushik
3,431 Pointsimport UIKit
for number in 1...10{ println ("(number) * 7 = (number*7)") } \try this code it will surely work
viplove bansal
Courses Plus Student 2,170 Pointsfor number in 1...10 { println ("(number) * 7 = (number*7)") }
viplove bansal
Courses Plus Student 2,170 Pointsviplove bansal
Courses Plus Student 2,170 Pointsya yu re right but 1...10 = 1..<11