Challenge: Practicing For Loop
Task
Modify the code to display numbers from 10 to 1, one per line. Replace the placeholders (___) with the correct symbols or expressions.
index.go
12345678package main import "fmt" func main() { for i := ___; i ___ 0; ___ { fmt.Println(i) } }
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain how the for loop works in this code?
What does fmt.Println(i) do in this context?
Can you show how to modify the code to count up instead of down?
Awesome!
Completion rate improved to 1.96
Challenge: Practicing For Loop
Swipe to show menu
Task
Modify the code to display numbers from 10 to 1, one per line. Replace the placeholders (___) with the correct symbols or expressions.
index.go
12345678package main import "fmt" func main() { for i := ___; i ___ 0; ___ { fmt.Println(i) } }
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8