forked from steger/pr3-sose2026
19 lines
340 B
Go
19 lines
340 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
|
|
//string values and concatenation operator
|
|
fmt.Println("go" + "lang")
|
|
|
|
//numeric values and arithmetic operators
|
|
fmt.Println("1+1 =", 1+1)
|
|
fmt.Println("7.0/3.0 =", 7.0/3.0)
|
|
|
|
//boolean values and logical operators
|
|
fmt.Println(true && false)
|
|
fmt.Println(true || false)
|
|
fmt.Println(!true)
|
|
}
|