Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Created June 3, 2011 06:50
Show Gist options
  • Save wingyplus/1005977 to your computer and use it in GitHub Desktop.
Save wingyplus/1005977 to your computer and use it in GitHub Desktop.
Loop exam.
package main
import (
"fmt"
"strconv"
"os"
)
func main () {
start, _ := strconv.Atoi (os.Args[1])
stop, _ := strconv.Atoi (os.Args[2])
for i := start; i <= stop; i++ {
fmt.Println (i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment