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

⟦a01f54c15⟧ TextFile

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

Derivation

└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
    └─ ⟦this⟧ »KONTROL.PAS« 
└─⟦09235ab48⟧ Bits:30003065 Demoprogrammer K-Z til Pascal bog
    └─ ⟦this⟧ »KONTROL.PAS« 
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─ ⟦this⟧ »KONTROL.PAS« 
└─⟦f983c2ef3⟧ Bits:30004681 Pascal opgaver (Butler)
    └─ ⟦this⟧ »KONTROL.PAS« 

TextFile

PROGRAM kontrol;

  TYPE
    str2 = STRING(.2.);
  
  VAR
    streng : str2;
    tal, test : INTEGER;
  
  BEGIN
    WRITE(CLRHOM);
    REPEAT
      GOTOXY(0, 5);
      WRITE(CLREOL, 'Tast et heltal fra 20 til 30: ');
      BUFLEN := 2;
      READLN(streng);
      VAL(streng, tal, test);
    UNTIL (test = 0) AND (20 <= tal) AND (tal <= 30);
    WRITELN('Det indtastede tal er ok');
  END.
«eof»