Browse Source

Add remaining activities of chapter 01

master
T. Meissner 4 years ago
parent
commit
89c38eef04
2 changed files with 34 additions and 0 deletions
  1. +18
    -0
      chapter_01/activity_1.03/main.go
  2. +16
    -0
      chapter_01/activity_1.04/main.go

+ 18
- 0
chapter_01/activity_1.03/main.go View File

@ -0,0 +1,18 @@
package main
import "fmt"
func main() {
count := 5
var message string
if count > 5 {
message = "Greater than 5"
} else {
message = "Not greater than 5"
}
fmt.Println(message)
}

+ 16
- 0
chapter_01/activity_1.04/main.go View File

@ -0,0 +1,16 @@
package main
import "fmt"
func main() {
count := 0
if count < 5 {
count = 10
count++
}
fmt.Println(count == 11)
}

Loading…
Cancel
Save