Answer the question
In order to leave comments, you need to log in
Please help me to solve the problem?
The task is as follows: without storage, find two minimal numbers whose sum of squares is >500. snippet of my pascal program:
for i:=1 to n do begin
readln (f, a);
if (a<min1) then begin min2:=min1; min1:=a; end;
if (a>min1) and (a<min2) then min2:=a;
end;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question