Var
A,i,Max:integer;
Begin
Max:=0;
For i:= 1 to 10 do
Begin
Read(a);
if (Abs(A) mod 10 = 7)and(A>Max) then Max:=A;
End;
WriteLn('Max = ',Max);
End.
Const
n = 4;
var
a: array[1..n, 1..n] of integer;
i, j: integer;
begin
for i := 1 to n * n do
a[i mod n + 1, (i-1) div n + 1] := random(10);
for i := 1 to n do
begin
writeln();
for j := 1 to n do
begin
if i = j then a[i, j] := 0;
write(a[i, j]:3);
end;
end;
end.
Program n1;
const n=20;
var y: real;
n: integer;
begin
y:=0;
for i:=1 to n do y:=y+1/n;
writeln(y);
end.
72•29ч тс стст состоят тстаооа
Program ryazantsev;
var i,k:integer;
begin
k:=0;
for i:=1 to 105 do if (((i mod 10) mod 2 = 0) and (i mod 3 = 0)) or (i<10) then k:=k+1;
writeln(k)
end.
Таких чисел 25, запустите программу и убедитесь сами.