N=7,
1 4 6 7 9 12 17
1)среднее арифметическое = (1+4+6+7+9+12+17)/7 = 8
2)<span>среднее геометрическое = корень седьмой степени из(1*4*6*7*9*12*17)=</span>6.08
3)<span>среднее гармоническое = 7/(1/1+1/4+1/6+1/7+1/9+1/12+1/17) = 3.857</span>
The best thing about being a good time waster but it was not immediately available to all of them in your eyes are so cute I
I'm so happy to have the best way for a long day ahead and the other day I don't know how I
Python 3:
t = float(input())if 2.0 <= t <= 10.0: print('Принадлежит')else: print('Не принадлежит')
Задача 2
цикл повторится 2 раза, a = 3, b = 6, c = 9
Первая
var n,x:integer;
begin
readln(n);
while n <> 0 do begin
x:=x + n mod 10;
n:=n div 10;
end;
if(x mod 2 = 0) then
writeln('true')
else
writeln('false');
end.
Вторая
var x,z,s:integer;
begin
readln(x);
if (x > 99) and (x < 1000) then begin
s:=x;
while s<>0 do begin
z:=z+s mod 10;
s:=s div 10;
end;
if(x*x) = (z*z*z) then
writeln('true')
else
writeln('false');
end
else
writeln('Число должно быть 3-ех значным!');
end.
Третья
Var a,b,c:Real;
Begin
Writeln('Введите a');
Readln(a);
Writeln('Введите b');
Readln(b);
Writeln('Введите c');
Readln(c);
if (a=b) or (a=c) or (b=c) then
writeln ('true')
else
writeln ('false);
end.