Running your first Go program

Report a typo

Below you will see the code of a very simple Go program that outputs a message and the result of an arithmetic operation:

package main

import "fmt"

func main() {
    var greeting = "Hello, Go!"
    fmt.Println(greeting)

    var num1, num2 = 1, 2
    fmt.Println(num1 / num2)
}

Your task is to copy the above code, visit the Go playground and paste the code into the online editor.

After pasting the code, click the Run button near the top-right corner, and then select the correct output of the program below.

Select one option from the list
___

Create a free account to access the full topic