You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
325 B
Go
17 lines
325 B
Go
package maths
|
|
|
|
// Add adds two integers a and b together, returning the result.
|
|
func Add(a, b int) int {
|
|
return a + b
|
|
}
|
|
|
|
// Sub subtracts integer b from integer a, returning the result
|
|
func Sub(a, b int) int {
|
|
return a - b
|
|
}
|
|
|
|
// Mult multiplies two integers and returns the result
|
|
func Mult(a, b int) int {
|
|
return a * b
|
|
}
|