-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): add for loop and fizzbuzz examples
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
LAKSHMI START | ||
|
||
!! declare variables | ||
AANDAVAN SOLLRAN ix ARUNACHALAM SEIYARAN 1; | ||
AANDAVAN SOLLRAN range ARUNACHALAM SEIYARAN 16; | ||
|
||
NAA 1 THADAVA SONNA range THADAVA SONNA MADHRI{ | ||
EN PEAR MANICKAM ix%15==0{ | ||
DOT "FizzBuzz"; | ||
} ENAKKU INNURU PEAR IRUKKU{ | ||
EN PEAR MANICKAM ix%3==0{ | ||
DOT "Fizz"; | ||
} ENAKKU INNURU PEAR IRUKKU{ | ||
EN PEAR MANICKAM ix%5==0{ | ||
DOT "Buzz"; | ||
} ENAKKU INNURU PEAR IRUKKU{ | ||
DOT ix; | ||
}KATHAM KATHAM; | ||
}KATHAM KATHAM; | ||
}KATHAM KATHAM; | ||
ix BHAJJI SAAPDU ix + 1; | ||
!! End Loop | ||
}KATHAM KATHAM; | ||
MAGIZHCHI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
LAKSHMI START | ||
!! for loop example | ||
DOT "For Loop Example"; | ||
AANDAVAN SOLLRAN x ARUNACHALAM SEIYARAN 5; | ||
DOT "Before loop: X =" x; | ||
DOT "Running loop from 1...10"; | ||
NAA 1 THADAVA SONNA 10 THADAVA SONNA MADHRI{ | ||
x BHAJJI SAAPDU x + 1; | ||
|
||
}KATHAM KATHAM; | ||
DOT "After loop: X =" x; | ||
MAGIZHCHI |