Section6.60
This commit is contained in:
18
Section6/60.go
Normal file
18
Section6/60.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
count := 0
|
||||
|
||||
for i := 0; true; i++ {
|
||||
if i%13 == 0 {
|
||||
fmt.Printf("%d is divisible by 13 \n", i)
|
||||
count++
|
||||
}
|
||||
if count == 10 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fmt.Println("Your 10 numbers divisible by 13")
|
||||
}
|
||||
Reference in New Issue
Block a user