Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save 100daysofdevops/f24a0eb31b02ea62ba4cb4263ed3e86d to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
x := 10
y := 5
var z int
z = x + y
fmt.Println("Sum: ", z )
z = x - y
fmt.Println("Difference: ", z )
z = x * y
fmt.Println("Product: ", z )
z = x / y
fmt.Println("Quoitent: ", z )
z = x % y
fmt.Println("Remainder: ", z )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment