daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 87 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top