Created
April 27, 2023 03:39
-
-
Save eileen-code4fun/00595efd32298029a2a0ee66fac4390f to your computer and use it in GitHub Desktop.
Sum in Golang
This file contains hidden or 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 sum(a, b int) int { | |
return a + b | |
} | |
func main() { | |
fmt.Printf("%d\n", sum(1, 2)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment