Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,879 members, 7,802,839 topics. Date: Friday, 19 April 2024 at 10:58 PM

3by2 Matrices Multiplication In C(4 Soji) - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / 3by2 Matrices Multiplication In C(4 Soji) (754 Views)

Pascal Program For Matrix Multiplication / How Can I Create Multiplication Table Using Qbasic And Fortran? PLS HELP! / [problem] Write A Program In C++ That Finds The Hcf Of 2 Numbers Without Using A Recursive Function (2) (3) (4)

(1) (Reply)

3by2 Matrices Multiplication In C(4 Soji) by Cockyzy(m): 12:50pm On Dec 12, 2009
Here is the source code.#include<stdio.h> #include<conio.h> void main()/*void since main does not expect a return value*/ { int a[3][2], b[3][2], c[3][2]; //variables declaration// clrscr();//This function clear the screen// printf("Enter the elements of the matrix a"wink;for(int i=0;i<3;i++)for(int j=0;i<2;j++){scanf("%d",&a[i][j]);}printf("Enter the elements of the matrix b"wink;for(int i=0;i<3;i++)for(int j=0;i<2;j++) {scanf("%d",&b[i][j]);}printf("The Product of the Matrix A and B is\n"wink;for(int i=0;i<3;i++)for(int j=0;i<2;j++){ c[i][j]=a[i][j]*b[i][j];};for(int i=0;i<3;i++)for(int j=0;i<2;j++){ printf("%d\t",c[i][j]);} } i will get back to you prior pascal triangle source code.
Re: 3by2 Matrices Multiplication In C(4 Soji) by joefazee(m): 5:00pm On Dec 14, 2009
Learn how to use
 tag

(1) (Reply)

Php/mysql,asp/sql / I Have A Few Questions For C Progamming / Programming Platform Advice Needed In Terms Of Most Rewarding

(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.