|
|
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 - metrics - download
Length: 896 (0x380)
Types: TextFile
Names: »BINTERN.PAS«
└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
└─⟦this⟧ »BINTERN.PAS«
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
└─⟦this⟧ »BINTERN.PAS«
└─⟦3702e543b⟧ Bits:30003064 Demoprogrammer A-J til Pascal bog
└─⟦this⟧ »BINTERN.PAS«
PROGRAM bintern;
CONST
serielaengde = 10;
TYPE
arr = ARRAY(.0 .. serielaengde.) OF INTEGER;
VAR
tabel : arr;
antal, seksere, kast, i, j : INTEGER;
BEGIN
WRITE(CLRHOM);
WRITE('Indtast antal serier: ');
READLN(antal);
RANDOMIZE;
FOR i := 0 TO serielaengde DO
tabel(.i.) := 0;
FOR i := 1 TO antal DO
BEGIN
seksere := 0;
FOR j := 1 TO serielaengde DO
BEGIN
kast := RANDOM(6);
IF kast = 0
THEN seksere := seksere + 1;
END;
tabel(.seksere.) := tabel(.seksere.) + 1;
END;
WRITELN;
WRITELN('ANTAL SEKSERE FREKVENS');
WRITELN;
FOR i := 0 TO serielaengde DO
WRITELN(i : 6, tabel(.i.) / antal * 100 : 20 : 2, ' %');
END.
«eof»