-
-
Save parzibyte/ad5eb20d6915fecbfff2df4af60755d0 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 | |
/* | |
Una simple función que suma (y que vamos a probar más adelante) | |
en Go | |
@author parzibyte | |
*/ | |
import "fmt" | |
func main() { | |
resultado := sumar(1, 2) | |
fmt.Printf("El resultado de la suma es: %d", resultado) | |
} | |
func sumar(a int, b int) int { | |
return a + b | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment