Increment a numerical string: Difference between revisions

Add SmallBASIC
(Add ed example)
(Add SmallBASIC)
 
Line 873:
s=val(s)+1
print s 'result: "123"
</syntaxhighlight>
 
==={{header|SmallBASIC}}===
<syntaxhighlight lang="qbasic">
s = "1234"
s = str(s + 1)
print s
</syntaxhighlight>
 
29

edits