Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,162,437 members, 7,850,530 topics. Date: Wednesday, 05 June 2024 at 01:04 AM

Pascal Program For Matrix Multiplication - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Pascal Program For Matrix Multiplication (5212 Views)

PASCAL Program / How Can I Create Multiplication Table Using Qbasic And Fortran? PLS HELP! / Algorithm For Pascal Program (2) (3) (4)

(1) (Reply)

Pascal Program For Matrix Multiplication by Graciia: 4:14am On Aug 03, 2014
http://detutor8..com/2014/04/pascal-program-for-matrix-multiplication.html?m=1


Pasal program to multiply arrays A[i , j] and B[i, j] . Each element of the resulting matrix is multiplied by 1/4

Program begn;
Var
A, B, C, D : Array [1..2,1..2] of real;
I, j: integer;

Begin
  For i:= 1 to 2 do
    For j:= 1 to 2 do
      Begin
      Readln (A[i, j]);
      End;
  
  
Begin
  For i:= 1 to 2 do
    For j:= 1 to 2 do
      Readln (B[i, j]);
      End;
  
  
Begin
  For i:= 1 to 2 do
    For j:= 1 to 2 do
      C[i, j]:= A[i, j] * B[i, j];
      End;
  

Begin
  For i:= 1 to 2 do
    For j:= 1 to 2 do
      D[i, j]:= 1/4 * C[i, j];
      End;
  
  
Begin
  For i:= 1 to 2 do
    For j:= 1 to 2 do
      Writeln (D[i, j]);
      Readln;
      End;
End.
Re: Pascal Program For Matrix Multiplication by ciraboorcabi(m): 11:53pm On Sep 13, 2016
How is the output supposed to look like

(1) (Reply)

Have Never Heard About HACKING, Dont We Have Serious HACKERS ? / Do Not Disturb A Programmer / Android Game Programming For Subway Surfers

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.