Guest User

Untitled

a guest
Jan 23rd, 2019
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6. var (
  7. pi float32 = 3.1416 //floating point number
  8. z complex128 = -5 + 12i //complex number
  9. )
  10. /* creating a complex number */
  11. var complx = complex(3, 4) //returns 3+4i
  12. fmt.Println(pi, z, complx)
  13. }
RAW Paste Data