Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: Bishop
Title:
  meow
Question:
uses crt;
const nmax=20;
var a:array[1..nmax,1..nmax] of integer;
    i,j,max,min,idxi,idxj,n,idxii,idxjj:integer;
begin
 clrscr;
  repeat
   write('n=');
    readln(n);
  until n in [1..nmax];
  writeln('ÃŒÃ*òðèöÃ* :');
   for i:=1 to n do
    for j:=1 to n do
     a[i,j]:=10 random(90);
   for i:=1 to n do
    begin
     for j:=1 to n do
      write(a[i,j]:4);
       writeln;
    end;
  max:=a[1,1]; min:=a[1,1]; idxi:=1;idxj:=1;
   for i:=1 to n do
    for j:=1 to n do
     if a[i,j]>max then
      begin
       max:=a[i,j];
       idxi:=i;
       idxj:=j;
      end
     else
      if a[i,j]<min then
       begin
        min:=a[i,j];
        idxii:=i;
        idxjj:=j;
       end;
    writeln('ÌèÃ*èìÃ*ëüÃ*ûé Ã½Ã«Ã¥Ã¬Ã¥Ã*ò = ',min,' i=',idxii,' j=',idxjj);
    writeln('ÃŒÃ*êñèìÃ*ëüÃ*ûé Ã½Ã«Ã¥Ã¬Ã¥Ã*ò = ',max,' i=',idxi,' j=',idxj);
 readkey;
end.
Answers:

Name: Blas Irabon
oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh oh yeahhh