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 12:48, 26 December 2023
, 5 months agoMoved Kto the right place
(→K: add) |
(Moved Kto the right place) |
||
Line 660:
7 11111113 123456832098769
</pre>
=={{header|K}}==▼
<syntaxhighlight lang="k">{x,'x*x}2(-17+*)\8#10</syntaxhighlight>▼
{{out}}▼
<pre>(3 9▼
13 169▼
113 12769▼
1113 1238769▼
11113 123498769▼
111113 12346098769▼
1111113 1234572098769▼
11111113 123456832098769)</pre>▼
=={{header|Lua}}==
<syntaxhighlight lang="lua">
Line 681 ⟶ 694:
11111113 123456832098769
</pre>
▲=={{header|K}}==
▲<syntaxhighlight lang="k">{x,'x*x}2(-17+*)\8#10</syntaxhighlight>
▲{{out}}
▲<pre>(3 9
▲ 13 169
▲ 113 12769
▲ 1113 1238769
▲ 11113 123498769
▲ 111113 12346098769
▲ 1111113 1234572098769
▲ 11111113 123456832098769)</pre>
=={{header|MAD}}==
|