Advertisement
Mushi

unario.go

Apr 24th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.19 KB | None | 0 0
  1. // unario unario.go
  2. package main
  3.  
  4. import "fmt"
  5.  
  6. func main() {
  7.     x := 1
  8.     y := 2
  9.  
  10.     // apenas postfix
  11.     x++ // x+=1
  12.     fmt.Println(x)
  13.  
  14.     y--
  15.     fmt.Println(y)
  16.  
  17.     // fmt.Println(x == y++)
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement