another addition example
This commit is contained in:
parent
26adaad561
commit
71468385e2
|
@ -2,9 +2,9 @@ package functions
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
func Addition(number1 int, number2 int) {
|
func Addition(number1 int, number2 int) int{
|
||||||
var total = number1 + number2
|
var total = number1 + number2
|
||||||
fmt.Println("Result : ", total)
|
return total
|
||||||
}
|
}
|
||||||
|
|
||||||
func SayHello() {
|
func SayHello() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user