GO -Additions-, Subtraktions- und Multiplikationsbetreiber
package main
import ("fmt")
func main() {
num1 := 6
num2 := 2
// + adds two variables
sum := num1 + num2
fmt.Printf("%d + %d = %d\n", num1, num2, sum)
// - subtract two variables
difference := num1 - num2
fmt.Printf("%d - %d = %d\n",num1, num2, difference)
// * multiply two variables
product := num1 = num2
fmt.Printf("%d * %d is %d\n",num1, num2, product)
}
SAMER SAEID