Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math/big"
- )
- func pow(i, e *big.Int) *big.Int {
- return new(big.Int).Exp(i, e, nil)
- }
- func main() {
- x := pow(big.NewInt(16), big.NewInt(2))
- fmt.Println(x) // 256
- }
Add Comment
Please, Sign In to add comment