Sunday, October 21, 2018

Two Dimensional Array in Turbo Pascal

Here is a sample program that I wrote using Turbo Pascal For Windows to show how two dimensional array works in Pascal programming language. The code is very simple and short very easy to understand.


I am currently accepting programming work, it projects, school 

programming projects, thesis and capstone projects, IT consulting 

work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

My personal website is http://www.jakerpomperada.com




Sample Program Output


Program Listing

two.pas


 program two_dimensional_array;

 uses WinCrt;

var 

   a: array [0..10, 0..10] of integer;

   i,j : integer;  

begin
   writeln;
   write('        Two Dimensional Array in Turbo Pascal');
   writeln;
   writeln;
   write('      Created By Mr. Jake R. Pomperada,MAED-IT');
   writeln;
   writeln;
   for i:=0 to 10 do
      for j:=0 to 10 do
         a[i,j]:= i * j;  
   
   for i:=0 to 10 do
   begin  
      for j:=0 to 10 do
         write(a[i,j]:4,' ');  
      writeln;  
   end;
   writeln;
   write('            End of Program');
   writeln;
end.



No comments:

Post a Comment