9952 explained code solutions for 126 technologies

golangHow to print new line with printf()

package main
import "fmt"

func main() {
  fmt.Printf("%d\n%d", 12, 34)
}ctrl + c
func main() {

declare main function that will be launched automatically

package main

default package declaration


prints formatted string


will print numeric integer value


prints new line

12, 34

sample values to print