Babbage problem: Difference between revisions

Content added Content deleted
Line 1,415: Line 1,415:
wait
wait


loopuntil ((n ^ 2) % 1000000) = 269696
loopuntil (n ^ 2) % 1000000 = 269696


print "The smallest number whose square ends in 269696 is: ", n
print "The smallest number whose square ends in 269696 is: ", n
print "It's square is ", n * n
print "It's square is ", n * n</syntaxhighlight>
{{out| Output}}<pre>calculating...

The smallest number whose square ends in 269696 is: 25264
end</syntaxhighlight>
It's square is 638269696</pre>


=={{header|D}}==
=={{header|D}}==