Mushi

atribuicao

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