- 1
Why is the result 17
var result = 0; for i in 0...4 { if i == 3 { result += 10; } else { result += i; } } print(result)
2 ответов
+ 1
Thank you devanille
var result = 0; for i in 0...4 { if i == 3 { result += 10; } else { result += i; } } print(result)