Answers for "variables in golang"

Go
2

go variables

package main

import "fmt"

var c, python, java bool

func main() {
	var i int
	fmt.Println(i, c, python, java)
}
Posted by: Guest on January-12-2021
1

go variables

package main

import "fmt"

var i, j int = 1, 2

func main() {
	var c, python, java = true, false, "no!"
	fmt.Println(i, j, c, python, java)
}
Posted by: Guest on January-12-2021
0

variables in golang

package main

import "fmt"

func main() {
    number := 100
    decimal := 98.6
    phrase := "Hello World"
    result := true
}
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language