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.
golang-tutorial/demo04/demo04-05.go

15 lines
196 B

package main
import (
"fmt"
)
func main() {
c1 := complex(5,7)
c2 := 8 + 27i
cadd := c1 + c2
fmt.Println("sum:",cadd)
cmul := c1 * c2
fmt.Println("mul :",cmul)
}