Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
12
Task/Repeat-a-string/Chipmunk-Basic/repeat-a-string.basic
Normal file
12
Task/Repeat-a-string/Chipmunk-Basic/repeat-a-string.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
100 cls
|
||||
110 print stringrepeat$("rosetta",1)
|
||||
120 print stringrepeat$("ha",5)
|
||||
130 print stringrepeat$("*",5)
|
||||
140 end
|
||||
150 function stringrepeat$(s$,n)
|
||||
160 cad$ = ""
|
||||
170 for i = 1 to n
|
||||
180 cad$ = cad$+s$
|
||||
190 next i
|
||||
200 stringrepeat$ = cad$
|
||||
210 end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue