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

18
Section12/94.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
"unicode/utf8"
)
func main() {
s1 := "Golang"
fmt.Println(len(s1))
name := "Codruța"
fmt.Println(len(name))
n := utf8.RuneCountInString(name)
fmt.Println(n)
}