Answer Posted / shubham singh
#include<conio.h>
#include<stdio.h>
void main()
{
int a[2][2],b[2][2],c[2][2];//declare 3 array int type
int i,j,k;
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
} scanf("%d",&a[i][j]);//inserting element in array a
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
} scanf("%d",&b[i][j]);//inserting element in array b
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
for(k=;k<2;K++)
{
c[i][j]+=a[i][k]*b[i][j];//multiply of a and b
}
}
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
printf("%d",a[i][j]);//printing element of array c
}
}
}//main close
| Is This Answer Correct ? | 29 Yes | 23 No |
Post New Answer View All Answers
What is this pointer in c plus plus?
What are types of preprocessor in c?
Describe newline escape sequence with a sample program?
hi, which software companys will take,if d candidate's % is jst 55%?
What does p mean in physics?
What is the best organizational structure?
How can a program be made to print the name of a source file where an error occurs?
main() { printf("hello"); fork(); }
When should structures be passed by values or by references?
How does selection sort work in c?
What are linked lists in c?
code for find determinent of amatrix
i want to know the procedure of qualcomm for getting a job through offcampus
What is difference between far and near pointers?
When is a “switch” statement preferable over an “if” statement?