Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Repeat/XBasic/repeat.basic
Normal file
23
Task/Repeat/XBasic/repeat.basic
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
PROGRAM "Repeat"
|
||||
VERSION "0.0000"
|
||||
|
||||
DECLARE FUNCTION Entry ()
|
||||
DECLARE FUNCTION Proc ()
|
||||
DECLARE FUNCTION Repe (func$, c)
|
||||
|
||||
FUNCTION Entry ()
|
||||
Repe ("proc", 5)
|
||||
PRINT "Loop Ended"
|
||||
|
||||
END FUNCTION
|
||||
|
||||
FUNCTION Proc ()
|
||||
PRINT " Inside loop"
|
||||
END FUNCTION
|
||||
|
||||
FUNCTION Repe (func$, c)
|
||||
FOR i = 1 TO c
|
||||
Proc ()
|
||||
NEXT i
|
||||
END FUNCTION
|
||||
END PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue