Guest User

Untitled

a guest
Dec 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "math/big"
  6. )
  7.  
  8. func pow(i, e *big.Int) *big.Int {
  9. return new(big.Int).Exp(i, e, nil)
  10. }
  11.  
  12. func main() {
  13. x := pow(big.NewInt(16), big.NewInt(2))
  14. fmt.Println(x) // 256
  15. }
Add Comment
Please, Sign In to add comment