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 - metrics - download
Index: B T

⟦69e7508b3⟧ TextFile

    Length: 718 (0x2ce)
    Types: TextFile
    Names: »B«

Derivation

└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
    └─⟦5cb1d1d7f⟧ »DATA« 
        └─⟦3b1ee7bd8⟧ 
            └─⟦this⟧ 

TextFile

with Square;
procedure Magic_Square is
    procedure Do_A_Magic_Square (Size : in Positive) is  
        package This_Square is new Square (Size);
        use This_Square;
        Token : Positive := 1;
    begin
        Go_To_Center;
        Go (North);
        loop
            Deposit (Token);
            exit when Token = Size ** 2;
            Token := Token + 1;
            Go (North_East);  
            while Is_Already_Occupied loop
                Go (North_West);
            end loop;
        end loop;  
        Display;
    end Do_A_Magic_Square;

begin  
    for Size in 3 .. 13 loop
        if Size mod 2 /= 0 then
            Do_A_Magic_Square (Size);
        end if;
    end loop;
end Magic_Square;