Declaración de continuar con continuar
for initialization; condition; update {
if condition {
continue
}
}
SAMER SAEID
for initialization; condition; update {
if condition {
continue
}
}
package main
import ("fmt")
func main() {
for i := 1 ; i <= 5 ; i++ {
// skips the iteration when i is equal to 3
if i == 3 {
continue
}
fmt.Println(i)
}
}