Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Matrix multiplication. C
//gcc 5.4.0 #include<stdio.h> int main() { int i,j,k,a[2][2]={1,2,5,3,4,4},b[3][3]={1,1,1,5,6,1},c[3][3]; for(i=0;i<3;i++) { for(j=0;j<3;j++) { c[3][3]=0; for(k=0;k<3;k++) { c[i][j]=c[i][j]+a[i][k]*b[k][j]; } } } printf("MatrixMultiplication\n"); for(i=0;i<3;i++) { for(j=0;j<3;j++) { printf("%10d",c[i][j]); } printf("\n"); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
swipe the numbers in cyclic way
gcc compiler code for delay
CpointfunProd
The endless numbers.
light blue zoda
Example of scanf and basic integer manipulation - with function call
array and its sum
finding 3 ones in a row
Jai
HW4e5
Please log in to post a comment.