Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure prog is
- arraySize : Integer := 0;
- type myArray is array(Integer range <>) of Float;
- begin
- -- Get Array size from user.
- put_line("How big would you like the array?");
- get(arraySize);
- declare
- theArray : myArray(0..arraySize);
- begin
- for I in 0..arraySize Loop
- theArray(I) := 1.2 * I;
- end Loop;
- end;
- end prog;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement