Answer:
program arraysminfinder;
procedure minreplace();
var
no: array [1..10] of integer; (*no is an array of integers, 10 in all *)
a: integer= 0;
i: integer= 0;
c: integer= 0;
k: integer=0;
N: integer=0;
begin
(* We need to first initialize the array no with 0 values *)
for a := 1 to 10 do
no[a]:=0;
c:=no[1];
for a := 1 to 10 do
begin
if (no[i]<c) then
begin
c:=no[i];
k:=i;
end
else
begin
i:=i+1;
end
end;
writeln('Enter the new number:');
read(N);
no[k]:=N;
for a := 1 to 10 do
begin
writeln('The array elements are:',no[a]);
end;
end;
begin
end.
Explanation:
The program is as above. I have used a function, a for loop, an array of integers, and the if then else ladder for getting the desired output as mentioned in the program. If in case you want procedure for input and output, create a procedure like:
procedure replacenum():integer;
Begin
writeln("Enter the new number:" N);
no[k]:=N;
for a := 1 to 10 do
writeln("The array elements are:"no[a]);
end.
Similarly you can make a procedure for input.
2
6
4
I’m guessing but this is my guess
The Harvard Business Review coined the term information technology to make a distinction between purpose-built machines designed to perform a limited scope of functions, and general-purpose computing machines that could be programmed for various tasks.
<span>
The statement that when you create a new workbook from a template, an unnamed copy of the template opens is true.
</span><span>If you want to open the workbook that you want to use as a template you should click the Microsoft Office Button , and then click Save As.</span><span>In the File name box, you should type the name that you want to use for the template.</span>
Answer:
it’s called a solder. It’s used to permanently fuse two metals together. And they’re used in many different areas like construction, technology, etc.
That pic that you have i think is a computer chip or something similar.
So a solder is the tool that is used to make metal into liquid.
hope this helps and pls mark me brainliest :)