For (go lang)

From wikieduonline
Revision as of 08:08, 29 April 2020 by Welcome (talk | contribs) (Created page with " <pre> package main import "fmt" func main() { sum := 0 for { sum++ // repeated forever fmt.Println(sum) } } </pre> == See also == * {{go}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


package main

import "fmt"

func main() { 
sum := 0

 for {
    sum++ // repeated forever
    fmt.Println(sum)
 }
}

See also

Advertising: