Section12 - 94

This commit is contained in:
2023-11-29 12:42:04 +01:00
parent 1c925bc32a
commit 248388f5de
3 changed files with 79 additions and 0 deletions

32
Section12/90.go Normal file
View File

@@ -0,0 +1,32 @@
package main
import "fmt"
func main() {
s1 := "Hi there Go!"
fmt.Println(s1)
fmt.Println("He sais: \"Hello!\"")
fmt.Println(`He sais: "Hello again!"`)
s2 := `I like \n Go!` //raw string
fmt.Println(s2)
fmt.Println("Price: 100\nBrand: Nike")
fmt.Println(`
Price: 100
Brand: Nike
`)
fmt.Println(`C:\Users\Sebastian`)
fmt.Println("C:\\Users\\Sebastian")
var s3 = "I love " + "Go " + "Programming"
fmt.Println(s3 + "!")
fmt.Println("Element at index 0:", s3[0])
// s3[5] = 'x'
fmt.Printf("%s\n", s3)
fmt.Printf("%q\n", s3)
}