Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Babbage-problem/SenseTalk/babbage-problem.sensetalk
Normal file
15
Task/Babbage-problem/SenseTalk/babbage-problem.sensetalk
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(*
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue