Napisałem symulator moltilotka lae nie wiem czemu nie działa i po pierwszej pętli wywala exit with exitcode 201 czy jakoś tak :/
[code]
program symulator_multilotka;
uses crt;
var
i,j,wynik:integer;
tab:array[1..10] of integer;
tab2:array[1..20] of real;
begin
clrscr;
for i:=1 to 10 do
begin
writeln('Podaj 10 liczb do systemu multilotka:');
readln(tab[i]);
clrscr;
end;
for j:=1 to 20 do
begin
repeat
tab2[j]:=random(81);
until (tab2[j]<>0) AND (tab2[j]<>tab2[j-1]);
end;
wynik:=0;
for i:=1 to 10 do
begin
for j:=1 to 20 do
if tab[i]=tab2[j] then
wynik:=wynik+1;
end;
write('Zgadłeś ',wynik,'liczb');
end.
[/code]