// Chapter 13 example: the arithmetic operators. // Predict each line before running, then check. // Run with: go run exercises/13/01-arithmetic.go package main import "fmt" func main() { fmt.Println(3 + 2) // 5 fmt.Println(7 - 4) // 3 fmt.Println(6 * 7) // 42 fmt.Println(7 / 2) // 3 (whole numbers, whole answer) fmt.Println(7.0 / 2) // 3.5 (a decimal, so a decimal answer) fmt.Println(7 % 2) // 1 (remainder) }