3 функции
This commit is contained in:
13
math/math.go
Normal file
13
math/math.go
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package math
|
||||||
|
|
||||||
|
func Add(a, b int) int {
|
||||||
|
return a + b
|
||||||
|
}
|
||||||
|
|
||||||
|
func Subtract(a, b int) int {
|
||||||
|
return a - b
|
||||||
|
}
|
||||||
|
|
||||||
|
func Multiply(a, b int) int {
|
||||||
|
return a * b
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user