Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created October 1, 2019 21:31
Show Gist options
  • Select an option

  • Save 100daysofdevops/60d63c7d6735c40951e79ed03e10789a to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/60d63c7d6735c40951e79ed03e10789a to your computer and use it in GitHub Desktop.
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