Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,930 members, 7,956,497 topics. Date: Monday, 23 September 2024 at 12:55 PM |
Nairaland Forum / Science/Technology / Programming / Pascal Program For Matrix Multiplication (5267 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)
Association Of Nigerian Programmers Online / Laravel Nairaland Corner -- Post Any Laravel Code Issues, Get Solution For FREE / My Board Games In Vb 6.0
(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. 39 |