mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-17 18:51:17 +00:00
first
This commit is contained in:
23
course/7-loops/exercises/5-continue_and_break/code.go
Normal file
23
course/7-loops/exercises/5-continue_and_break/code.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func printPrimes(max int) {
|
||||
// ?
|
||||
}
|
||||
|
||||
// don't edit below this line
|
||||
|
||||
func test(max int) {
|
||||
fmt.Printf("Primes up to %v:\n", max)
|
||||
printPrimes(max)
|
||||
fmt.Println("===============================================================")
|
||||
}
|
||||
|
||||
func main() {
|
||||
test(10)
|
||||
test(20)
|
||||
test(30)
|
||||
}
|
||||
Reference in New Issue
Block a user