Created
October 1, 2019 21:31
-
-
Save 100daysofdevops/60d63c7d6735c40951e79ed03e10789a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func main() { | |
| var x int = 10 | |
| var y int | |
| y = x | |
| fmt.Println("Value of y:", y ) | |
| y += x | |
| fmt.Println("Value of y:", y ) | |
| y -= x | |
| fmt.Println("Value of y:", y ) | |
| y *= x | |
| fmt.Println("Value of y:", y ) | |
| y /= x | |
| fmt.Println("Value of y:", y ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment