12 lines
124 B
Go
12 lines
124 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
a := complex(3, 2)
|
|
fmt.Println(a, real(a), imag(a))
|
|
}
|
|
|
|
// Output:
|
|
// (3+2i) 3 2
|