Append numbers at same position in strings: Difference between revisions
Append numbers at same position in strings (view source)
Revision as of 12:34, 2 July 2023
, 11 months ago→{{header|RPL}}: Add implementation with HP-49g extended instruction set
(Created Nim solution.) |
m (→{{header|RPL}}: Add implementation with HP-49g extended instruction set) |
||
Line 722:
=={{header|RPL}}==
Using the basic instruction set:
≪ 3 →LIST → lists
≪ { } 1 lists 1 GET SIZE '''FOR''' j
"" 1 3 '''FOR''' k lists k GET j GET →STR + '''NEXT''' STR→ + '''NEXT'''
≫ ≫ '
Using the extended instruction set introduced in 2003:
{{works with|HP|49}}
≫ '<span style="color:blue">TASK</span>' STO
'''Input:'''
{ 1 2 3 4 5 6 7 8 9 } { 10 11 12 13 14 15 16 17 18 } { 19 20 21 22 23 24 25 26 27 } <span style="color:blue">TASK</span>
{{out}}
<pre>
|