trying_out_go/double.go
2023-10-16 12:44:08 -04:00

14 lines
149 B
Go

package main
import "fmt"
func makeDouble(number *int) {
*number *= 2
}
func double() {
amount := 6
makeDouble(&amount)
fmt.Println(amount)
}