DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦119dfcaa2⟧ TextFile

    Length: 846 (0x34e)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

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;