Skip to content

Commit

Permalink
Update tree Example with chap 2.0.0 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ali77gh authored Nov 4, 2023
1 parent 05eb211 commit 9f0dcd3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,18 +476,13 @@ you win
## christmas_tree.chp

```chp
0 -> $counter
@loop
$counter -> increase
$counter, 2 -> multiply -> $stars_size
10, $counter -> minus -> $space_size
"*", $stars_size -> repeat -> $stars
" ", $space_size -> repeat -> $spaces
$spaces, $stars -> cat
(" ", (10, $counter -> minus) -> repeat),
("*", ($counter, 2 -> multiply) -> repeat) ->
cat
@loop, $counter, 10 -> jump if not equal
```
Expand Down

0 comments on commit 9f0dcd3

Please sign in to comment.