Section12 - 94
This commit is contained in:
18
Section12/94.go
Normal file
18
Section12/94.go
Normal 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)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user