Source File: ex14/main.go

package main

import (
    "fmt"
)

func main() {
    // need to declare variables first to make space for them
    var age int
    var name string
    var favorite string

    // REMEMBER: this has an erorr, fix it
    fmt.Print("What's your name? ")
    fmt.Scan(&name)

    fmt.Print("How old are you? ")
    fmt.Scan(&age)

    fmt.Print("What's your favorite kind of pet? ")
    fmt.Scan(&favorite)

    fmt.Println("You're name is", name)
    fmt.Println("You are", age, "years old")
    fmt.Println("You're favorite pet is", favorite)
}