diff --git a/06-variables/02-declarations/exercises/06-with-bits/main.go b/06-variables/02-declarations/exercises/06-with-bits/main.go index 9bc23b2..2df5c80 100644 --- a/06-variables/02-declarations/exercises/06-with-bits/main.go +++ b/06-variables/02-declarations/exercises/06-with-bits/main.go @@ -31,7 +31,7 @@ package main // and read the comments there // // EXPECTED OUTPUT -// 0 0 0 0 0 0 0 false 0 0 +// 0 0 0 0 0 0 0 (0+0i) (0+0i) false 0 0 // "" // --------------------------------------------------------- diff --git a/06-variables/02-declarations/exercises/06-with-bits/solution/main.go b/06-variables/02-declarations/exercises/06-with-bits/solution/main.go index 42ba29b..d8a1437 100644 --- a/06-variables/02-declarations/exercises/06-with-bits/solution/main.go +++ b/06-variables/02-declarations/exercises/06-with-bits/solution/main.go @@ -21,6 +21,10 @@ func main() { var f32 float32 var f64 float64 + // complex types + var c64 complex64 + var c128 complex128 + // bool type var b bool @@ -32,6 +36,7 @@ func main() { fmt.Println( i, i8, i16, i32, i64, f32, f64, + c64, c128, b, r, by, )