+ 2

Word repeater - go

package main import "fmt" "strings" func main() { var w string fmt.Scanln(&w) var x int fmt.Scanln(&x) res1 := strings.Repeat(w,x) fmt.Println(res1) } It still fails. Can someone help me?

26th Dec 2021, 4:36 AM
Kim Hammar-Milliner
Kim Hammar-Milliner - avatar
2 Antworten
+ 2
package main import ("fmt"; "strings") func main() { var w string var x int fmt.Scanln(&w) fmt.Scanln(&x) res1 := strings.Repeat(w,x) fmt.Println(res1) } //look at the import statement!
26th Dec 2021, 4:46 AM
CGM
CGM - avatar
0
Thanks for helping me
26th Dec 2021, 4:49 AM
Kim Hammar-Milliner
Kim Hammar-Milliner - avatar