// Chapter 14 example: fmt.Printf and fmt.Sprintf with several verbs. // Run with: go run exercises/14/01-format.go package main import "fmt" func main() { name := "Keiko" level := 7 hp := 95 fmt.Printf("%s (Lv %d) HP %d\n", name, level, hp) line := fmt.Sprintf("%s is level %d", name, level) fmt.Println(line) // Try changing the first fmt.Printf so the output reads: // Keiko has 95 HP at level 7 }