Cursos /
Introduction to GoLang
Challenge: String Formatting Practice
Task
Write the correct format specifiers to format the string based on the passed arguments in the Printf
function.
index.go
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)
}
Tudo estava claro?
Seção 2. Capítulo 8
Conteúdo do Curso
Introduction to GoLang
Introduction to GoLang
Challenge: String Formatting Practice
Task
Write the correct format specifiers to format the string based on the passed arguments in the Printf
function.
index.go
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)
}
Tudo estava claro?
Seção 2. Capítulo 8