Пожалуйста, объясните работу программы.
var k,m: integer;
Dat: array[1..10]of integer;
begin
Dat[1]:=45;
Dat[2]:=55;
Dat[3]:=40;
Dat[4]:=15;
Dat[5]:=20;
Dat[6]:=80;
Dat[7]:=35;
Dat[8]:=70;
Dat[9]:=10;
Dat[10]:=45;
m:= Dat[1];
for k:=2 to 10 do begin
if Dat[k] < Dat[1] then
begin
m:= m+ Dat[k]
end
end;
write(m);
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.