Advertisement
cwchen

[Go] for (as while) demo.

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