Word repeater | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Word repeater

package main import "fmt" func main() { var w string fmt.Scanln(&w) var x int fmt.Scanln(&x) } func repeat() { for (i=1; i <=x; i++ ){ fmt.Println(w, x) } } It does not work not sure why it does not work.

12th Dec 2021, 1:47 AM
Kim Hammar-Milliner
Kim Hammar-Milliner - avatar
1 Answer
+ 2
This was already answered. Follow the remaining steps listed and if you're still having an issue comment again here with you current iteration of your code. https://www.sololearn.com/Discuss/2937891/?ref=app
12th Dec 2021, 4:59 AM
ChaoticDawg
ChaoticDawg - avatar