RosettaCodeData/Task/Babbage-problem/SenseTalk/babbage-problem.sensetalk

16 lines
378 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(*
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
2026-02-01 16:33:20 -08:00
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
2023-07-01 11:58:00 -04:00
end repeat