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) } }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 8
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain how the for loop works in this code?
What would happen if I changed the loop condition to i >= 1?
Can you show how to print the numbers in reverse order using a different loop?
Awesome!
Completion rate improved to 1.96
Challenge: Practicing For Loop
Pyyhkäise näyttääksesi valikon
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) } }
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 8