mirror of
https://github.com/sbrow/risk-multilang.git
synced 2026-02-27 20:31:45 -05:00
feat: Added Haskell and Go.
This commit is contained in:
15
go/math.go
Normal file
15
go/math.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package risk
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func max(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
Reference in New Issue
Block a user