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
FILE PROGRAMMING
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is c mainly used for?
Why do we need volatile in c?
Give differences between - new and malloc() , delete and free() ?
What’s a signal? Explain what do I use signals for?
Why do we use null pointer?
What is "Duff's Device"?
What are the 3 types of structures?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is %d used for?
Write a program to print numbers from 1 to 100 without using loop in c?
What is the purpose of void in c?
a program that can input number of records and can view it again the record
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include