Π‘ΠΎΡΡΠΈΡΠΎΠ²ΠΊΠ° ΠΌΠ°ΡΡΠΈΠ²Π° ΡΡΡΠΎΠΊ, ΠΠ°ΡΠΊΠ°Π»Ρ.
Π‘ΠΎΡΡΠΈΡΠΎΠ²ΠΊΠ° ΠΌΠ°ΡΡΠΈΠ²Π° ΡΡΡΠΎΠΊ, ΠΠ°ΡΠΊΠ°Π»Ρ.
program Task_Str5;
{Π·Π°Π΄Π°ΡΠΈ Π½Π° ΡΡΡΠΎΠΊΠΈ ΠΏΠ°ΡΠΊΠ°Π»Ρ Ρ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ΠΌ}
{ΡΠΎΡΡΠΈΡΠΎΠ²ΠΊΠ° ΠΌΠ°ΡΡΠΈΠ²Π° ΡΡΡΠΎΠΊ, ΠΠ°ΡΠΊΠ°Π»Ρ}
const
n = 8;
var
i, j: integer;
s_Str: string;
s_Words: array[1..n] of string;
begin
s_Words[1] := 'ΠΠ΅ΡΠ΅Π²ΡΡ';
s_Words[2] := 'Π’ΡΠ°Π²Π°';
s_Words[3] := 'ΠΠ΅ΡΠΎΠΊ';
s_Words[4] := 'ΠΠ°ΠΌΠ΅Π½Ρ';
s_Words[5] := 'ΠΠΎΠ΄Π°';
s_Words[6] := 'ΠΠ΅Π±ΠΎ';
s_Words[7] := 'ΠΠ±Π»Π°ΠΊΠ°';
s_Words[8] := 'ΠΠ΅ΡΠ΅Π²ΠΎ';
for i := 1 to n-1 do
for j := i + 1 to n do
if s_Words[i] > s_Words[j] then
begin
s_Str := s_Words[i];
s_Words[i] := s_Words[j];
s_Words[j] := s_Str;
end;
for i := 1 to n do
Write(s_Words[i], ' ');
Writeln;
ReadLn();
end.
Π Π΅Π·ΡΠ»ΡΡΠ°Ρ:
Π‘ΠΎΡΡΠΈΡΠΎΠ²ΠΊΠ° ΠΌΠ°ΡΡΠΈΠ²Π° ΡΡΡΠΎΠΊ, ΠΠ°ΡΠΊΠ°Π»Ρ.