Skip to content

Commit

Permalink
statement
Browse files Browse the repository at this point in the history
  • Loading branch information
0bvim committed Oct 11, 2024
1 parent bac3d60 commit 7e66776
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/udemy/go_ted/section12/statement_statement.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

import (
"fmt"
"math/rand"
)

func main() {
for i := 0; i < 100; i++ {
if x := rand.Intn(5); x == 3 {
fmt.Printf("loop %v\tx is 3\n", i)
}
}
}

0 comments on commit 7e66776

Please sign in to comment.