Loop

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


Infinite loop

go

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

Advertising: