9951 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

fmt.Printf(

prints formatted string

%d

will print numeric integer value

\n

prints new line

12, 34

sample values to print