Exercises & activities from the go workshop provided by Packt: https://courses.packtpub.com/courses/go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
254 B

  1. package main
  2. import "fmt"
  3. func main() {
  4. var a int = 100
  5. var b float32 = 100
  6. var c float64 = 100
  7. fmt.Println(a / 3)
  8. fmt.Println(b / 3)
  9. fmt.Println(c / 3)
  10. fmt.Println((a / 3) * 3)
  11. fmt.Println((b / 3) * 3)
  12. fmt.Println((c / 3) * 3)
  13. }