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.
12 lines
227 B
Go
12 lines
227 B
Go
10 months ago
|
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
|
||
|
}
|