Answers for "swift continue with function"

2

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 continue with function"

Code answers related to "Swift"

Browse Popular Code Answers by Language