DataMuseum.dk

Presents historical artifacts from the history of:

Jet Computer Jet80

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

See our Wiki for more about Jet Computer Jet80

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦a01f54c15⟧ TextFile

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

Derivation

└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─ ⟦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»