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) } }
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 8
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
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
Свайпніть щоб показати меню
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) } }
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 8