RosettaCodeData/Task/Babbage-problem/EMal/babbage-problem.emal
2024-07-13 15:19:22 -07:00

9 lines
341 B
Text

^|
| 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)