Babbage problem: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: changed word choice from a verb to a noun.)
No edit summary
Line 224: Line 224:
'''output''' &nbsp; is identical as the 1<sup>st</sup> REXX version.
'''output''' &nbsp; is identical as the 1<sup>st</sup> REXX version.
<br><br>
<br><br>

=={{header|Ring}}==
<lang ring>
n = 0
while pow(n,2) % 1000000 != 269696
n = n + 1
end
see "The smallest number whose square ends in 269696 is : " + n + nl
see "Its square is : " + pow(n,2)
</lang>
Output:
<pre>
The smallest number whose square ends in 269696 is : 25264
Its square is : 638269696
</pre>


=={{header|Ruby}}==
=={{header|Ruby}}==