You can use the following example to write a multiplication table using the for() function.
package main
import (
"fmt"
)
func main() {
for i := 1; i <= 10; i++ {
fmt.Println("-------------------")
for j := 1; j <= 10; j++ {
fmt.Println(i, "*", j, "=", i*j)
}
}
}