DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦80d50bccb⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Go_Magic, seg_02fa93

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Text_Io;  
with Magic;
with Magic_Strategy;

procedure Go_Magic is

    package Io is new Text_Io.Integer_Io (Num => Natural);
    Insize : Natural;
    Mysize : Magic.Max_Size;
    Again : Character;

begin  
    loop
        Text_Io.New_Line;
        Text_Io.Put ("Size of your Magic Square : ");
        Io.Get (Insize);
        Text_Io.New_Line;
        if Insize mod 2 = 0 then
            Text_Io.New_Line;
            Text_Io.Put ("Size of your Magic Square : ");
            Text_Io.New_Line;
            Io.Get (Insize);

        else  
            Mysize := Magic.Max_Size (Insize);
            Magic_Strategy (Mysize);  
        end if;  
        Text_Io.New_Line;
        Text_Io.Put ("Again (Y/N) ? ");
        Text_Io.Get (Again);
        exit when Again = 'n' or Again = 'N';
    end loop;
    Text_Io.Put ("See you... ");
    Text_Io.New_Line;

exception
    when Constraint_Error =>
        Text_Io.Put ("Please key in a number, between 1 and 999 ! ");
        Text_Io.New_Line;
        Text_Io.Put ("Size of your Magic Square : ");
        Io.Get (Insize);

end Go_Magic;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=27 rec1=00 rec2=01 rec3=046
        [0x01] rec0=07 rec1=00 rec2=02 rec3=001
    tail 0x21528dba284925c1cb216 0x42a00088462060003