problems with massive on free pascal lazarus / 62-General ---------------------------------------------------------------------- Legend_1 · 2017-03-28 18:59 I'm studying in liceum , studying programming, solve the problem using arrays and loops. Recently started to study a two-dimensional array, but still don't understand how to define an individual memory cell in the array to a specific value if I use a for loop. If you can write me how to solve this problem. Thank you. ---------------------------------------------------------------------- marcov · 2017-03-28 19:00 Try searching for "pascal two dimensional array" ---------------------------------------------------------------------- howardpc · 2017-03-28 21:01 Maybe this helps: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program Array2D; const  xMin = 1;  xMax = 3;  yMin = 1;  yMax = 4;  type  TArray = array[xMin..xMax, yMin..yMax] of integer; var  arr: TArray;  x, y: integer; begin  for x := xMin to xMax do    for y := yMin to yMax do      arr[x, y] := x*y;   for x := xMin to xMax do    for y := yMin to yMax do      WriteLn('arr[',x,',',y,'] = ', arr[x, y]);   WriteLn(#10'Press [Enter] to close');  ReadLn;end. ---------------------------------------------------------------------- Kays · 2017-03-29 05:16 Just to show that there are for … in loops and low/high functions:Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program multidimarr(input, output, stderr); {$mode objfpc} type        firstDimension = 0..1;        secondDimension = 0..3; var        mdarr: array[firstDimension, secondDimension] of longint;        x: firstDimension;        y: secondDimension; begin        for x in firstDimension do        begin                for y in secondDimension do                begin                        mdarr[x, y] := y;              end;        end;                for x := low(mdarr) to high(mdarr) do        begin                for y := low(mdarr[x]) to high(mdarr[x]) do                begin                        writeln('mdarr[', x:3, ', ', y:3, '] = ', mdarr[x, y]);              end;        end;end.http://freepascal.org/docs.var the “language reference guide” is your friend.