Answers for "continue loop swift"

1

swift continue

for i in 1...3 {
    if i == 2 {
        continue
    }
    else{
      print(i)
    }
}
//output: 1, 3
Posted by: Guest on October-20-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language