Section6.60

This commit is contained in:
2023-10-06 14:17:02 +02:00
parent a860ef2796
commit dda560aaa8
3 changed files with 35 additions and 5 deletions

18
Section6/60.go Normal file
View 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")
}