Skip to content

Instantly share code, notes, and snippets.

@ilhamarrouf
Last active March 29, 2019 11:52
Show Gist options
  • Save ilhamarrouf/0a09e6f54d2711851abe0a41637bd6d4 to your computer and use it in GitHub Desktop.
Save ilhamarrouf/0a09e6f54d2711851abe0a41637bd6d4 to your computer and use it in GitHub Desktop.
Outer loop matrix golang
package main
import "fmt"
func main() {
outerLoop:
for i := 0; i < 5; i++ {
for j := 0; j < 5; j++ {
if i == 5 {
break outerLoop
}
fmt.Print("matriks [", i, "][", j, "]", "\n")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment