Show the (decimal) value of a number of 1s appended with a 3, then squared: Difference between revisions

m
also show the value before squaring since the task's phrasing might be asking for that
(J)
m (also show the value before squaring since the task's phrasing might be asking for that)
Line 495:
=={{header|J}}==
 
<syntaxhighlight lang=J> (2^~,.*:)(2 + 10 #. 1x #~ >:)"0 i.8
3 9
9 169 12769 1238769 123498769 12346098769 1234572098769 123456832098769
13 169
113 12769
1113 1238769
11113 123498769
111113 12346098769
1111113 1234572098769
11111113 123456832098769
</syntaxhighlight>
 
6,962

edits