A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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