9951 explained code solutions for 126 technologies


golangHow to print integer with printf()


package main
import "fmt"

func main() {
  fmt.Printf("%d", 123)
}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

123

sample int value