RosettaCodeData/Task/Repeat-a-string/Go/repeat-a-string-2.go

2 lines
60 B
Go

fmt.Println(strings.Repeat(string('h'), 5)) // prints hhhhh