|
DataMuseum.dkPresents historical artifacts from the history of: CP/M |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about CP/M Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 640 (0x280) Types: TextFile Names: »UD6.PAS«
└─⟦09235ab48⟧ Bits:30003065 Demoprogrammer K-Z til Pascal bog └─ ⟦this⟧ »UD6.PAS« └─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80) └─ ⟦this⟧ »UD6.PAS«
PROGRAM ud6; (* Programmet viser indlæsning via tastaturet *) (* og udlæsning på printeren *) VAR antal: INTEGER; enhedspris: REAL; varenavn: STRING(.25.); BEGIN WRITE(CHR(12),'Tast varens navn: '); READLN(varenavn); WRITE('Tast antal enheder: '); READLN(antal); WRITE('Tast varens enhedspris: '); READLN(enhedspris); WRITELN; WRITELN(LST,'Varenavn:',varenavn:22); WRITELN(LST,'Antal varer: ',antal:10); WRITELN(LST,'Varens enhedspris: ',enhedspris:10:2); WRITELN(LST,'Samlet pris: ',antal*enhedspris:10:2); END. «eof»