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

10 lines
341 B
Plaintext

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