You cannot 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
265 B
Go

package main
import (
"fmt"
"reflect"
)
func main() {
a := 10.000000000
b := 3
fmt.Println("\nA is type", reflect.TypeOf(a), "and B is of type", reflect.TypeOf(b))
c := int(a) + b
fmt.Println("\nC has value:", c, "and is of type", reflect.TypeOf(c))
}