+ 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?
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!
0
Thanks for helping me