Quick actions

cmd+k|ctrl+k

Navigation

Languages

for, while loops / while loop / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-08-24T21:49:33Z

Updated

2019-08-24T21:49:33Z

package main

import "fmt"

func main() {
	n := 0
	for n < 3 {
		fmt.Printf("n: %d\n", n)
		n++
	}
}
INFO