Зміст курсу
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)
}
Все було зрозуміло?
Секція 2. Розділ 8
Зміст курсу
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)
}
Все було зрозуміло?
Секція 2. Розділ 8