*/
Looking for work? Check out our jobs area.
*/

View \ARRAYS.PAS

This is the second disk of the PASCAL TUTOR system. It has the

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


(* Chapter 6 - Program 1 *)
program Simple_Arrays;

var Count,Index : integer;
    Automobiles : array[1..12] of integer;

begin
   for Index := 1 to 12 do
      Automobiles[Index] := Index + 10;
   Writeln('This is the first program with an array');
   Writeln;
   for Index := 1 to 12 do
      Writeln('automobile number',Index:3,' has the value',
                                        Automobiles[Index]:4);
   Writeln;
   Writeln('End of program');
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.