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.
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
a, b := 5.67, 8.97
|
|
fmt.Printf("type of a %T b %T\n", a, b)
|
|
sum := a + b
|
|
diff := a - b
|
|
fmt.Println("sum", sum, "diff", diff)
|
|
|
|
no1, no2 := 56, 89
|
|
fmt.Println("sum", no1+no2, "diff", no1-no2)
|
|
} |