Advertisement
cwchen

[Go] continue demo.

Sep 16th, 2017
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.14 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5. )
  6.  
  7. func main() {
  8.     for i := 1; i <= 10; i++ {
  9.         if i%2 != 0 {
  10.             continue
  11.         }
  12.  
  13.         fmt.Println(i)
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement