Ответ:
F10 нажимай если уже все.
Объяснение:
var a,b,c: integer;
begin
read(a,b,c);
if (a>b) and (a>c) and (b>c) then write(a,b,c);
if (a>b) and (a>c) and (b<c) then write(a,c,b);
if (b>a) and (b>c) and (a>c) then write(b,a,c);
if (b>a) and (b>c) and (a<c) then write(b,c,a);
if (c>a) and (c>b) and (a>b) then write(c,a,b);
if (c>a) and (c>b) and (a<b) then write(c,b,a);
end;
Var
a,sum:integer;
begin
Read(a);
while (a > 0) do begin
sum += a mod 10;
a := a div 10;
end;
Writeln(sum);
end.
Var n,i,l:integer; s1,s2:string;
begin
write('n = '); readln(n);
for i:=1 to n do
begin
str(i,s1);
l:=length(s1);
str(i*i,s2);
if s1=copy(s2,length(s2)-l+1,l) then writeln(i,' ',i*i);
end;
end.
Пример:
n = 10000
1 1
5 25
6 36
25 625
76 5776
376 141376
625 390625
9376 87909376