package main
import "fmt"
// types occur at the end
func add(x int, y int) int {
return x + y
}
// when a sequence of parameters have the same types
// you can omit them
func sub(x, y int) int {
return x - y
}
func main() {
fmt.Println(add(3, 5))
fmt.Println(sub(10, 5))
}
To embed this program on your website, copy the following code and paste it into your website's HTML: