Kodewick
Start learning →
Starter←→0 / 70

Pet name tag

#005StarterOutput2 min

Make a name tag for the dog. Use fmt.Printf to show Mochi is 3 years old: the name goes in with %s from name, the age with %d from age. Finish with \n for a new line.

Should show
Mochi is 3 years old
main.go
package main

import "fmt"

func main() {
	name := "Mochi"
	age := 3
	// your code here: fmt.Printf with the name and the age, then a newline
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.