RosettaCodeData/Task/Increment-a-numerical-string/Liberty-BASIC/increment-a-numerical-string.liberty

11 lines
105 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
' [RC] Increment a numerical string.
o$ ="12345"
print o$
v =val( o$)
o$ =str$( v +1)
print o$
end