/* Matrix multiplication */
#include<stdio.h> int main() { int arr1[3][3],arr2[3][3],arr3[3][3]={0},i,j,k; printf("Type a matrix of 3 rows & 3 colomns :\n"); for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&arr1[i][j]); printf("Type another matrix of 3 rows & 3 colomns :\n"); for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&arr2[i][j]); for(i=0;i<3;i++) { for(j=0;j<3;j++) { for(k=0;k<3;k++) arr3[i][j]=arr3[i][j]+arr1[i][k]*arr2[k][j]; } } printf("\n\nOutput:\n"); for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%5d",arr3[i][j]); printf("\n\n"); } return 0; }
please to say the output also
ReplyDeleteplz say to out put also
ReplyDeletewhat is %5d or %3d ?
ReplyDelete%5d says that it will take 5 space to show the output of corresponding variable
DeleteNfidoplan_so Dennis Ayala https://marketplace.visualstudio.com/items?itemName=0eppovi-po.SNUSE-221-gratuita
ReplyDeletesocmacolli
WammoYir_ze1996 Jane Milligan Download crack
ReplyDeleteprosexuntau
pulcdanestkeBaltimore Chris Henderson download
ReplyDeleteclick here
download
click here
opidtuare
nadeWgras_ge-Evansville Penny Brooks Site
ReplyDeleteClick
download now
odadntegmye