for i: =1 to z-1 do for j: =i+1 to z do if st[i]> st[j] then
begin
t: =st[i];
st[i]: =st[j];
st[j]: =t;
end;
st[z+1]: ='-';
for i: =1 to z do i st[i]< > st[i+1] then write(st[i],' ');
end.
Ответ дал: Гость
uses crt; var a[1..100] of integer; i,n,count: integer; begincount: =0; read(n); for i: =1 to n do read(a[i]); if a[i]> 0 then inc(count); write(count); end.
Популярные вопросы