Skip to content

Commit

Permalink
docs(while_loop.rpp): add while loop with break statement example
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhithya committed May 16, 2022
1 parent f977e8b commit 144204f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/while_loop.rpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
LAKSHMI START
DOT "While Loop Example";
AANDAVAN SOLLRAN ix ARUNACHALAM SEIYARAN 1;
BABA COUNTING STARTS True{
DOT ix;
ix BHAJJI SAAPDU ix + 1;
EN PEAR MANICKAM ix > 5{
DOT "breaking out of loop...";
BLACK SHEEP;
}KATHAM KATHAM;
}KATHAM KATHAM;
MAGIZHCHI

0 comments on commit 144204f

Please sign in to comment.