RosettaCodeData/Task/Babbage-problem/EMal/babbage-problem.emal

10 lines
341 B
Text
Raw Permalink Normal View History

2024-07-13 15:19:22 -07:00
^|
| Since the number must end with 269696 we can safely start counting from its square root;
| we are only interested in its integer part.
| We assign a value to a variable with "←".
| The modulo symbol for getting the remainder of a division is "%".
|^
int i ← int!√269696
while i² % 1000000 ≠ 269696 do ++i end
writeLine(i)