for (go lang)

From wikieduonline
(Redirected from For (Go lang))
Jump to navigation Jump to search


package main

import "fmt"

func main() { 
  sum := 0

 for {
    sum++
    fmt.Println(sum)
 }
}

See also[edit]

Advertising: