RosettaCodeData/Task/Babbage-problem/Seed7/babbage-problem.seed7
2023-07-01 13:44:08 -04:00

11 lines
263 B
Text

$ include "seed7_05.s7i";
const proc: main is func
local
var integer: current is 0;
begin
while current ** 2 rem 1000000 <> 269696 do
incr(current);
end while;
writeln("The square of " <& current <& " is " <& current ** 2);
end func;