Online Go Compiler
package main import "fmt" func main() { x:= 40 y:=25 z:= x + y fmt.Printf("Sum of x + y = %d", z) }
Output Results
Sum of x + y = 65
package main import "fmt" func main() { x:= 40 y:=25 z:= x + y fmt.Printf("Sum of x + y = %d", z) }
Output Results
Sum of x + y = 65