fixed bug and added a little documentation

This commit is contained in:
Francesco Cozzuto
2021-11-05 00:10:45 +01:00
parent b224f57361
commit 9458632b27
8 changed files with 298 additions and 20 deletions
+15 -14
View File
@@ -1,25 +1,26 @@
p = true;
# ------------------------------------- #
# -- While loop ----------------------- #
while p:
i = 0;
while i < 3:
{
print('Hello!\n');
p = false;
print('Hello from the while loop!\n');
i = i + 1;
}
# ------------------------------------- #
# -- Do-Wile loop --------------------- #
i = 0;
do
{
print('Hello 2!\n');
}
while false;
# ------------------------------------- #
i = 0;
while i < 10:
{
print('i = ', i+1, '\n');
print('Hello from the do-while loop!\n');
i = i + 1;
}
while i < 3;
# ------------------------------------- #
# ------------------------------------- #