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:
26
course/7-loops/exercises/1-intro/code.go
Normal file
26
course/7-loops/exercises/1-intro/code.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func bulkSend(numMessages int) float64 {
|
||||
// ?
|
||||
}
|
||||
|
||||
// don't edit below this line
|
||||
|
||||
func test(numMessages int) {
|
||||
fmt.Printf("Sending %v messages\n", numMessages)
|
||||
cost := bulkSend(numMessages)
|
||||
fmt.Printf("Bulk send complete! Cost = %.2f\n", cost)
|
||||
fmt.Println("===============================================================")
|
||||
}
|
||||
|
||||
func main() {
|
||||
test(10)
|
||||
test(20)
|
||||
test(30)
|
||||
test(40)
|
||||
test(50)
|
||||
}
|
||||
Reference in New Issue
Block a user