Monday, December 10, 2007

How to work with ARRAY by example

How to work with ARRAY by example

To work with ARRAY by example

Example:

program Welcome;

uses

WinCrt;

var

count,sum:integer;

mark:array [1..40] of integer;

begin

for count:=1 to 12 do

begin

mark[sum]:=count+2;

Writeln(mark[sum]);

end;

end.

Output:

No comments: