RosettaCodeData/Task/Babbage-problem/Limbo/babbage-problem.limbo

22 lines
398 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
implement Babbage;
include "sys.m";
2026-02-01 16:33:20 -08:00
sys: Sys;
print: import sys;
2023-07-01 11:58:00 -04:00
include "draw.m";
2026-02-01 16:33:20 -08:00
draw: Draw;
2023-07-01 11:58:00 -04:00
Babbage : module
{
2026-02-01 16:33:20 -08:00
init : fn(ctxt : ref Draw->Context, args : list of string);
2023-07-01 11:58:00 -04:00
};
init (ctxt: ref Draw->Context, args: list of string)
{
2026-02-01 16:33:20 -08:00
sys = load Sys Sys->PATH;
current := 0;
while ((current * current) % 1000000 != 269696)
current++;
print("%d", current);
2023-07-01 11:58:00 -04:00
}