enter code here
var results: [Int] = []
for n in 1...100 {
if n % 2 !=0 && n % 7 == 0 {
results.append(n)
}
}
giving me the errors : '{' is expected after the if statement
"braced block of statements is an unused closure"
I'm freaking out.... Thanks for any help in advance p.s - I'm new to stackoverflow so if I did something wrong feel free to tell me what I did wrong and how to improve it enter code here
Aucun commentaire:
Enregistrer un commentaire