2
1
Fork 0

implement myMath module II

main
Sebastian Steger 2025-08-20 09:20:59 +00:00
parent ff881930f5
commit b799d0db38
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
}
}