Answer Posted / akshay sharma
#include<stdio.h>
#include<conio.h>
main()
{
int a[2][2],b[2][2],c[2][2],i,j,k;
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&a[i][j]);
}
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
scanf("%d",&b[i][j]);
}
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
c[i][j]=a[i][j]*b[i][j];
}
}
for(i=0;i<2;i++)
{
for(j=0;j<2;j++)
{
printf("%d",c[i][j]);
}
}
}
| Is This Answer Correct ? | 10 Yes | 18 No |
Post New Answer View All Answers
Explain what does the function toupper() do?
What is the difference between exit() and _exit() function in c?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is the difference between declaring a variable and defining a variable?
Is c still relevant?
what do the 'c' and 'v' in argc and argv stand for?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is new line escape sequence?
What are the back slash character constants or escape sequence charactersavailable in c?
what do you mean by inline function in C?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Is c programming hard?
Is c dynamically typed?
Why is structure padding done in c?
What are c preprocessors?