Ahojte!
Mam vytvorit algoritmus na výpis prvých n prvočísel
Vypisuje mi stale <16,1>syntax error, ";" expected but "UNTIL" found
a uz neviem ze co sa mu v tom riadku nepaci
Kód:
program N_prvocisel;
uses CRT;
var N, I, PP, PD, C: integer;
begin
ClrScr;
writeln(‘Zadaj pocet prvocisel: ‘);
readln(N);
PP:=0;
for I:=1 to C do
if C mod I=0 then PD:=PD+1;
if PD=2 then
begin
writeln(C,‘ ‘);
PP:=PP+1
end;
until PP=N; %<16,1>
readln;
end.
Dakujem