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

7 lines
160 B
TeX
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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