Created
March 23, 2022 17:27
-
-
Save rapando/06f502094c6f8e0a76a3967ae47ce147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var x = 3 | |
var y = 5 | |
printSum(x, y) | |
func() { | |
sum := x + y | |
fmt.Println("the sum is", sum) | |
}() | |
} | |
func printSum(x, y int) { | |
sum := x + y | |
fmt.Println("the sum is", sum) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment