aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/variables/variables4/main.go
blob: 01a26b132bbb9fc8b298a224fc8841bb37f3bdff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// variables4
// Make me compile!

// I AM NOT DONE
package main

import "fmt"

func main() {
	x := "TEN" // Don't change this line
	fmt.Printf("x has the value %s", x)

	if true {
		x = 1
		fmt.Println(x + 1)
	}

	fmt.Println(x)
}