Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
223780
//gcc 5.4.0 #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }https://play.google.com/store/apps/details?id=vrpatel0018.cprograms /*Multiplication of two 3*3 matrix*/ #include<stdio.h> int main() { int a[3][3],b[3][3],c[3][3],i,j,k,sum; //declaration of Two-Dimensional array printf("Enter element of first matrix are\n"); for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&a[i][j]); } } printf("Enter element of second matrix are\n"); for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&b[i][j]); } } for(i=0;i<3;i++){ for(j=0;j<3;j++){ sum=0; for(k=0;k<3;k++){ sum=sum+a[i][k]*b[k][j]; } c[i][j]=sum; } } printf("Additiion of two matrix is as follow:\n"); for(i=0;i<3;i++){ printf("\n"); for(j=0;j<3;j++){ printf("\t%d",c[i][j]); } } }
run
|
edit
|
history
|
help
0
1.3 Max threads
BMI Calc CT
blue saver go my marshal green
Date
table of 123
B_141104_NotaInterroganteDosPuntos
Command Expressions in Gnu C
Part 1: Draw Arts
Vereinfachung
C)_Assign_q4