×
×
Correct!
Create a variable called z, assign x + y to it, and display the result.
package main
import ("fmt")
func main() {
var x = 5
var y = 10
var @(1) = x + y
fmt.Println(@(1))
}
package main
import ("fmt")
func main() {
var x = 5
var y = 10
var z = x + y
fmt.Println(z)
}
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 28 exercises.
Are you sure you want to continue?