<span>110011₂=2⁵+2⁴+2¹+2⁰=</span> 51₁₀
111₄=4²+4¹+4⁰=21₁₀
35₈=3*8¹+5*8⁰= 29₁₀
<span>1В₁₆=1*16¹+11*16⁰=27₁₀
21</span>₁₀<<span>27₁₀<</span>29₁₀<51₁₀
111₄<<span>1В₁₆<</span>35₈<<span>110011₂
Наибольшее число: </span><span><span>110011₂</span>
</span>
Поскольку язык не указан, то вот вам решение в PascalABC.NET
===== PascalABC.NET =====
begin
var n := ReadInteger('n =');
var a := ArrRandom(n, -99, 99);
a.Println;
Println('Результат:', (a.Max + a.Min) / 2)
end.
===== Turbo Pascal =====
program abcd;
uses Crt;
const
nn = 100;
var
i, n, max, min: integer;
a: array[1..nn] of integer;
begin
ClrScr;
Write('n = ');
Readln(n);
Randomize;
max := -32768;
min := 32767;
for i := 1 to n do
begin
a[i] := Random(199) - 99;
Write(a[i], ' ');
if a[i] > max then
max := a[i]
else if a[i] < min then
min := a[i]
end;
Writeln;
Writeln('Результат: ', (max + min) / 2);
ReadKey
end.
<span>Вставка - Рисунок - Диаграмма</span>