Difference between revisions of "For (go lang)"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
 
== See also ==
 
== See also ==
 
* {{go}}
 
* {{go}}
 +
 +
[[Category:Programming]]

Revision as of 04:56, 29 September 2020


package main

import "fmt"

func main() { 
  sum := 0

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

See also

Advertising: