Guest User

Untitled

a guest
May 22nd, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.38 KB | None | 0 0
  1. procedure ALP is
  2.  
  3. type TRecord is record
  4.     X, Y, Z : Integer ;
  5. end record;
  6. type TArray is array (1 .. 2) of TRecord;
  7.     Z : TArray;
  8.     I : Positive := Z'Last - Z'First;
  9. begin
  10.     for I in Z'range loop
  11.         Z (I ). X := I ** I ;
  12.         Z (Z'Last + 1 - I).Y := (-1) ∗ I;
  13.     end loop;
  14.     Z (Z (1). X).Z := 42;
  15.     Z (Z (2). X + Z (1).Y).Z := 3;
  16.     Z (I ). Y := Z (Z(I).X - Z(Z'Last).Y).X;
  17.  
  18. end ALP;
Add Comment
Please, Sign In to add comment