DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

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

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦8b96ab981⟧ TextFile

    Length: 512 (0x200)
    Types: TextFile
    Names: »DEMO_STR.PAS«

Derivation

└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─ ⟦this⟧ »DEMO_STR.PAS« 
└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
    └─ ⟦this⟧ »DEMO_STR.PAS« 
└─⟦f983c2ef3⟧ Bits:30004681 Pascal opgaver (Butler)
    └─ ⟦this⟧ »DEMO_STR.PAS« 

TextFile

        PROGRAM demo_str;
        
          TYPE
            streng = STRING(.30.);
          
          VAR
            tal1 : REAL;
            tal2 : INTEGER;
            streng1, streng2 : streng;
          
          BEGIN
            tal1 := PI;
            tal2 := TRUNC(23 / 3);
            STR(tal1:6:4, streng1);
            STR(tal2:4, streng2);
            WRITELN(streng1);
            WRITELN(streng2);
          END.
«eof»