Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6. var x int = 10
  7. var y int
  8.  
  9. y = x
  10. fmt.Println("Value of y:", y )
  11.  
  12. y += x
  13. fmt.Println("Value of y:", y )
  14.  
  15. y -= x
  16. fmt.Println("Value of y:", y )
  17.  
  18. y *= x
  19. fmt.Println("Value of y:", y )
  20.  
  21. y /= x
  22. fmt.Println("Value of y:", y )
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement