Scan int



examples/scan-int/scan_int.go
package main

import "fmt"

func main() {
    var number int
    fmt.Print("Type in a number: ")
    fmt.Scan(&number)
    fmt.Println(number)
}