Skip to content

Commit

Permalink
feat(while): Added while statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
natangscalvence committed Jan 15, 2025
1 parent c341b41 commit 206de95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/a.glx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ extern string itos(int);

def main() -> int:

int number := 4;

while (number < 5):
std.printf("Number is less than 5!");


for (int i := -10; i < 10 + 1; ++i):
if (i > 5):
writeln(itos(i););
Expand Down

0 comments on commit 206de95

Please sign in to comment.