Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Last active February 28, 2022 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueltcsantos/5e7d47e73f881cb4f26eafc96c16b930 to your computer and use it in GitHub Desktop.
Save samueltcsantos/5e7d47e73f881cb4f26eafc96c16b930 to your computer and use it in GitHub Desktop.
Lendo um número inteiro em Go.
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, "]")
}
@samueltcsantos
Copy link
Author

samueltcsantos commented Feb 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment