Last active
March 29, 2019 11:52
-
-
Save ilhamarrouf/0a09e6f54d2711851abe0a41637bd6d4 to your computer and use it in GitHub Desktop.
Outer loop matrix golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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