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

11 lines
105 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
' [RC] Increment a numerical string.
o$ ="12345"
print o$
v =val( o$)
o$ =str$( v +1)
print o$
end