Что будет напечатано в результате выполнения программы:

program massiv;
const n=10;
a:array [1..n] of integer=(10,9,2,3,10,10,2,4,0,10);
var i,k,j: integer;
d:integer;
begin
d:= a[1]; k:=1;
for i:=2 to n do
begin
if a[i]>d then
begin
d:=a[i];
k:=i; end;
end;
write(k);
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.