Show the (decimal) value of a number of 1s appended with a 3, then squared: Difference between revisions
Show the (decimal) value of a number of 1s appended with a 3, then squared (view source)
Revision as of 20:11, 13 October 2023
, 7 months agoadded RPL
(→J: faster and more memory efficient) |
(added RPL) |
||
Line 1,215:
{11111113,123456832098769}
done...
</pre>
=={{header|RPL}}==
{{works with|HP|49}}
≪ { }
0 7 '''FOR''' n
10 n ^ 1 - 9 / 10 * 3 + SQ +
'''NEXT'''
≫ '<span style="color:blue">TASK</span>' STO
{{out}}
<pre>
1: { 9 169 12769 1238769 123498769 12346098769 1234572098769 123456832098769 }
</pre>
Line 1,234 ⟶ 1,246:
111111113 12345679432098769
</pre>
=={{header|Rust}}==
<syntaxhighlight lang="rust">
|