Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Babbage-problem/Simula/babbage-problem.simula
Normal file
22
Task/Babbage-problem/Simula/babbage-problem.simula
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
BEGIN
|
||||
INTEGER PROBE, SQUARE;
|
||||
BOOLEAN DONE;
|
||||
|
||||
WHILE NOT DONE DO BEGIN
|
||||
PROBE := PROBE + 1;
|
||||
SQUARE := PROBE * PROBE;
|
||||
IF MOD(SQUARE, 1000000) = 269696 THEN BEGIN
|
||||
|
||||
OUTTEXT("THE SMALLEST NUMBER: ");
|
||||
OUTINT(PROBE,0);
|
||||
OUTIMAGE;
|
||||
|
||||
OUTTEXT("THE SQUARE : ");
|
||||
OUTINT(SQUARE,0);
|
||||
OUTIMAGE;
|
||||
|
||||
DONE := TRUE;
|
||||
END;
|
||||
END;
|
||||
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue