Что будет выведено на экран? И кратко описать как получили ответ 1. var i, m, d:
integer;
Day: array[1..7] of
integer;
begin
Day [1]:=79; Day[2]:=25; Day [3]:=67; Day[4]:=80;
Day [5]:=63; Day[6]:=17; Day [7]:=68; d:= 1; m:= Day [1];
for i:=2 to 7 do begin
if Day [i] > m then begin
m:= Day [i]; d:=i end end;
write(d);
end.
2. var i, k, d: integer;
E: array[1..12] of
integer;
begin
E[1]:=125; E[2]:=234; E[3]:=168; E[4]:=89;
E[5]:=108; E[6]:=86; E[7]:=108; E[8]:=648;
E[9]:=259; E[10]:=386; E[11]:=250; E[12]:=367;
d:= 1; k:=E[1];
for i:=2 to 12 do begin
if E[i] < k then begin
k:=E[i]; d:=i end
end;
write(d);
end.
3. var k, m: integer;
Dat: array[1..10] of integer;
Begin
Dat[1] := 7; Dat[2] := 9; Dat[3] := 10;
Dat[4] := 5; Dat[5] := 6; Dat[6] := 7;
Dat[7] := 9; Dat[8] := 8; Dat[9] := 6; Dat[10] := 9;
m := 0;
for k := 1 to 10 do
if Dat[k] < 7 then
begin
m := m + 1
end;
4. var k, m: integer;
Dat: array[1..11] of integer;
Begin
Dat[1] := 20; Dat[2] := 25; Dat[3] := 19;
Dat[4] := 25; Dat[5] := 26; Dat[6] := 22;
Dat[7] := 24; Dat[8] := 28; Dat[9] := 26;
Dat[10] := 21; Dat[11] := 27; m := 0;
for k := 1 to 11 do
if k > 9 then
begin
m := m + Dat[k]
end;
writeln(m)
end.
5. var k, m: integer;
Dat: array[1..11] of integer;
Begin
Dat[1] := 20; Dat[2] := 25; Dat[3] := 19;
Dat[4] := 25; Dat[5] := 26; Dat[6] := 22;
Dat[7] := 24; Dat[8] := 28; Dat[9] := 26;
Dat[10] := 21; Dat[11] := 27; m := 30;
for k := 1 to 11 do
if Dat[k] < m then
begin
m := Dat[k]
end;
writeln(m)
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.