// for is the only looping construct in Go
// similar to C/C++/Java/JavaScript with three
// expressions. All three can be omitted.

package main

import "fmt"

func main() {
    for i := 10; i > 0; i-- {
        fmt.Println(i)
    }

    fmt.Println("liftoff!")
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: