1
0
Fork 0

implement myMath module II

main
Sebastian Steger 2025-08-20 09:20:59 +00:00
parent a15c5c6538
commit 0f90d8f25b
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package myMath
import "fmt"
func init() {
fmt.Println("initializing myMath")
}
func Add(a, b int) int {
return a + b
}
func greater(a, b int) bool {
return a > b
}
func Min(a, b int) int {
if greater(a, b) {
return b
} else {
return a
}
}