|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Magic_Square, seg_02fa91
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Text_Io;
with Square;
procedure Magic_Square is
I : Integer range 1 .. (Square.Max * Square.Max) := 1;
Nombre : Integer := 7;
Carre : Square.Matrix;
Coordonnees : Square.Case_Courrante := (X => 1, Y => 1);
begin
-- Square.Saisie (Nombre);
if Square.Impaire (Nombre) then
Square.Init_Square (Carre, Nombre);
Square.Go_To_Center (Coordonnees, Nombre);
Square.Move (Square.North, Coordonnees, Nombre);
Square.Deposit (Carre, Coordonnees, I, Nombre);
while I < (Nombre * Nombre) loop
I := I + 1;
Square.Move (Square.North, Coordonnees, Nombre);
Square.Move (Square.East, Coordonnees, Nombre);
Square.Deposit (Carre, Coordonnees, I, Nombre);
end loop;
Square.Display (Carre, Nombre);
end if;
end Magic_Square;
nblk1=2
nid=2
hdr6=2
[0x00] rec0=1a rec1=00 rec2=01 rec3=000
[0x01] rec0=02 rec1=00 rec2=02 rec3=001
tail 0x21528db7c84925c661503 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 ┆ ┆