Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
33
Task/Call-a-function/BASIC256/call-a-function.basic
Normal file
33
Task/Call-a-function/BASIC256/call-a-function.basic
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
function Copialo$ (txt$, siNo, final$)
|
||||
nuevaCadena$ = ""
|
||||
|
||||
for cont = 1 to siNo
|
||||
nuevaCadena$ += txt$
|
||||
next cont
|
||||
|
||||
return trim(nuevaCadena$) + final$
|
||||
end function
|
||||
|
||||
subroutine Saludo()
|
||||
print "Hola mundo!"
|
||||
end subroutine
|
||||
|
||||
subroutine testCadenas (txt$)
|
||||
for cont = 1 to length(txt$)
|
||||
print mid(txt$, cont, 1); "";
|
||||
next cont
|
||||
end subroutine
|
||||
|
||||
subroutine testNumeros (a, b, c)
|
||||
print a, b, c
|
||||
end subroutine
|
||||
|
||||
call Saludo()
|
||||
print Copialo$("Saludos ", 6, "")
|
||||
print Copialo$("Saludos ", 3, "!!")
|
||||
print
|
||||
call testNumeros(1, 2, 3)
|
||||
call testNumeros(1, 2, 0)
|
||||
print
|
||||
call testCadenas("1, 2, 3, 4, cadena, 6, 7, 8, \#incluye texto\#")
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue