Created
February 28, 2022 18:52
-
-
Save samueltcsantos/35f5d484999818cff1fe5e5080f7c389 to your computer and use it in GitHub Desktop.
Lendo dois números e exibindo a soma.
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 numero1 int | |
var numero2 int | |
fmt.Print("Digite o primeiro número: ") | |
fmt.Scan(&numero1) | |
fmt.Print("Digite o segundo número: ") | |
fmt.Scan(&numero2) | |
fmt.Println("A soma é ", numero1 + numero2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check out my page to see other examples Mais exemplos ...