Challenge: String Formatting PracticeChallenge: String Formatting Practice

Task

  1. Write the correct format specifiers to format the string based on the passed arguments in the Printf function.
go

index.go

1. Replace the blanks (___) with the correct format specifiers %s, %d, %f etc.


package main
import "fmt"

func main() {
    fmt.Printf("%c %d %s %f %t", 'm', 10, "Word", 7.99, true)
}

      

Everything was clear?

Section 2. Chapter 8