Last active
February 28, 2022 18:46
-
-
Save samueltcsantos/5e7d47e73f881cb4f26eafc96c16b930 to your computer and use it in GitHub Desktop.
Lendo um número inteiro em Go.
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 numero int | |
fmt.Println("Digite um número inteiro: ") | |
fmt.Scan(&numero) | |
fmt.Println("O número informado foi [", numero, "]") | |
} |
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 ...