package main import ( "fmt" "math/big" ) func main() { x := big.NewInt(100) y := big.NewInt(42) z := big.NewInt(0) z.Mul(x, y) fmt.Println(z) // Output: 4200 }
package main import ( "fmt" "math/big" ) func main() { a := big.NewInt(123456789) b := big.NewInt(987654321) c := big.NewInt(0) c.Mul(a, b) fmt.Println(c) // Output: 121932631137653269 }In this example, `Mul` is used to multiply `a` and `b` and store the result in `c`. The output of the program is 121932631137653269. The `math/big` package is a part of the standard library in Go. It provides an implementation of multi-precision arithmetic for integers and floating-point numbers. The package is used in various applications that require high-precision arithmetic, such as cryptography and numerical simulations.