Swift - Operators and Expressions
The following Swift code has an error. What is the problem?
let range = 1..5
for num in range {
print(num)
}let range = 1..5
for num in range {
print(num)
}1..5, which is not a valid range operator in Swift.... for closed ranges and ..< for half-open ranges, but not ...15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions