Files
bootdotdev-fcc-learn-golang…/course/7-loops/exercises/2-omit_condition/code.go
wagslane 9be3074de6 first
2023-05-01 15:25:27 -06:00

27 lines
435 B
Go

package main
import (
"fmt"
)
func maxMessages(thresh float64) int {
// ?
}
// don't edit below this line
func test(thresh float64) {
fmt.Printf("Threshold: %.2f\n", thresh)
max := maxMessages(thresh)
fmt.Printf("Maximum messages that can be sent: = %v\n", max)
fmt.Println("===============================================================")
}
func main() {
test(10.00)
test(20.00)
test(30.00)
test(40.00)
test(50.00)
}