Steady squares: Difference between revisions
→{{header|Ruby}}: Add Ruby
Not a robot (talk | contribs) (Add Miranda) |
(→{{header|Ruby}}: Add Ruby) |
||
Line 2,062:
≫ ‘STEDY’ STO
== {{header|Ruby}} ==
<syntaxhighlight lang="ruby">p (1..10_000).select{|n| (n*n).to_s.end_with? n.to_s }</syntaxhighlight>
{{out}}
<pre>[1, 5, 6, 25, 76, 376, 625, 9376]
</pre>
== {{header|TypeScript}} ==
{{trans|C}}
|