Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Practicing For Loop | Control Structures
Вступ до Golang

bookChallenge: 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

index.go

copy
12345678
package main import "fmt" func main() { for i := ___; i ___ 0; ___ { fmt.Println(i) } }

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 8

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

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

bookChallenge: 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

index.go

copy
12345678
package main import "fmt" func main() { for i := ___; i ___ 0; ___ { fmt.Println(i) } }

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 8
some-alt