277(8) = 2*8^2+7*8^1+7*8^0=128+56+7=191(10)
191(10)-27(10)=164(10)
164(10)=10100100(2)=A4(16)
Basic:
DIM a AS INTEGER, b AS INTEGER, c AS INTEGER, k AS INTEGER, x AS INTEGER, y AS INTEGER, z AS INTEGER
INPUT a
INPUT b
INPUT c
INPUT k
y = (a+(d-12)*3)*(c-5*k)
x = d+c*y
z = (c-d)*(x-y)
PRINT x
PRINT y
PRINT z
10 паввапроитбютимпсаевуекнепроломс
===== PascalABC.NET ======
begin
Range(1,100).Where(p -> (p mod 10 = 1) and (p mod 3 = 0)).Print
end.
Const N = 21;
Var
A:array[1..N] of integer;
i,k:integer;
S:real;
Begin
randomize;
S:=0;
k:=0;
Write('Исходный массив: ');
For i:= 1 to N do
Begin
A[i]:=random(80)-44;
Write(A[i],' ');
if A[i]<=12 then
Begin
S:=S+A[i];
k:=k+1
End;
End;
WriteLn;
WriteLn('Sr = ',S/k)
End.