Skip to content

Commit

Permalink
add loops/downward
Browse files Browse the repository at this point in the history
  • Loading branch information
serkonda7 committed Feb 27, 2024
1 parent 4f8fe7f commit 3d73fe3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks/l/loops_downward/expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
10
9
8
7
6
5
4
3
2
1
0
5 changes: 5 additions & 0 deletions tasks/l/loops_downward/main.bt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fun main() {
for i := 10; i >= 0; i -= 1 {
println(i)
}
}

0 comments on commit 3d73fe3

Please sign in to comment.