Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Loops-Break/Go/loops-break.go
Normal file
18
Task/Loops-Break/Go/loops-break.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
import "math/rand"
|
||||
import "time"
|
||||
|
||||
func main() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
for {
|
||||
a := rand.Intn(20)
|
||||
fmt.Println(a)
|
||||
if a == 10 {
|
||||
break
|
||||
}
|
||||
b := rand.Intn(20)
|
||||
fmt.Println(b)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue