You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
215 B
18 lines
215 B
3 years ago
|
package calc
|
||
|
|
||
|
func Add(a, b float64) float64 {
|
||
|
return a + b
|
||
|
}
|
||
|
|
||
|
func Sub(a, b float64) float64 {
|
||
|
return a - b
|
||
|
}
|
||
|
|
||
|
func Mult(a, b float64) float64 {
|
||
|
return a * b
|
||
|
}
|
||
|
|
||
|
func Divi(a, b float64) float64 {
|
||
|
return a / b
|
||
|
}
|