16 lines
358 B
Plaintext
16 lines
358 B
Plaintext
(*
|
|
Answer Charles Babbage's question:
|
|
What is the smallest positive integer whose square ends in the digits 269,696?
|
|
*)
|
|
|
|
put 1 into int
|
|
|
|
repeat forever
|
|
if int squared ends with "269696" then
|
|
put "The smallest positive integer whose square ends in the digits 269696 is" && int
|
|
exit all -- don't keep repeating forever!
|
|
end if
|
|
|
|
add 1 to int
|
|
end repeat
|