RosettaCodeData/Task/Increment-a-numerical-string/PlainTeX/increment-a-numerical-string.tex

7 lines
160 B
TeX
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
\newcount\acounter
\def\stringinc#1{\acounter=#1\relax%
\advance\acounter by 1\relax%
\number\acounter}
The number 12345 is followed by \stringinc{12345}.
\bye