<em><u>Вычисляем значение выражения 2 - 13 mod 7 / 3 + sqr(4)</u></em>
1) 13 mod 7 = 13 - 7 = 6
2) 6 / 3 = 2.0
3) 2 - 2.0 = 0.0
4) sqr(4) = 4 * 4 = 16
5) 0.0 + 16 = 16.0
6) 16.0 округлить до целых: 16
<em><u>В Паскале:</u></em>
var
i:integer;
begin
i:=Trunc(2-13 mod 7/3+sqr(4));
Writeln(i)
end.
1)
0 5
2 1
4 6
2)
(0+2+4) = х ось
(5+1+6) = у ось
3)
(6;12) | •2
4)
(12;24)
5)
(12-2;24+1)
6)
(10;25)
Ответ: сместиться на (10;25).
1)
<span>for x in range(1,10+1)<span>:
</span> n = x**2-<span>10
</span> print('x',x,'=',x,'^2 - 10 = ',n)
Пример:
x 1 = 1 ^2 - 10 = -9x 2 = 2 ^2 - 10 = -6x 3 = 3 ^2 - 10 = -1x 4 = 4 ^2 - 10 = 6x 5 = 5 ^2 - 10 = 15x 6 = 6 ^2 - 10 = 26x 7 = 7 ^2 - 10 = 39x 8 = 8 ^2 - 10 = 54x 9 = 9 ^2 - 10 = 71x 10 = 10 ^2 - 10 = 90
2)
<span>N = int(input('N = '))
suma = <span>0
</span>for i in range(6,6*N)<span>:
</span> suma += i
print("Suma =",suma)</span>
3)
<span>m = []
s = <span>0
</span>for x in range(-6,33)<span>:
</span> s += x
m.append(x)
print("Середне = ",s/len(m))
Пример:
Середне = 13.0
</span></span>
<h3>PascalABC.NET 3.4.2, сборка 1843 от 24.10.2018</h3>
begin
var s := ReadString;
((s.Count(t -> t in ['a'..'z']) > 0 ? 1 : 0) + (s.Count(t -> t in ['A'..'Z']) > 0 ? 1 : 0) +
(s.Count(t -> t in ['0'..'9']) > 0 ? 1 : 0) + (s.Length >= 8 ? 1 : 0)).Println;
end.