RosettaCodeData/Task/Babbage-problem/Craft-Basic/babbage-problem.basic
2026-02-01 16:33:20 -08:00

8 lines
195 B
Text

print "calculating..."
let n = 2
do
let n = n + 2
wait
loopuntil (n ^ 2) % 1000000 = 269696
print "The smallest number whose square ends in 269696 is: ", n
print "It's square is ", n * n