Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.56 KB | None | 0 0
  1. procedure najmniejszyelement(var t:Tab; var MIN: double; var POZ: integer);
  2. begin
  3.    MIN:=0;
  4.    POZ:=0;
  5.           for i:=0 to 9 do
  6.           Begin
  7.           if t[i]<t[i+1] then
  8.           begin
  9.           MIN:=t[i];
  10.           POZ:=i;
  11.           end;
  12.           if t[i]>t[i+1] then
  13.           begin
  14.           MIN:=t[i+1];
  15.           POZ:=i+1;
  16.           end;
  17.           if t[i]=t[i+1] then
  18.           begin
  19.           MIN:=t[i];
  20.           POZ:=i;
  21.           End;
  22.           if t[i]<MIN then
  23.           MIN:=t[i];
  24.           POZ:=i;
  25.           End;
  26.    end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement