PLleasae convert this in C language, thanks! ... #include using namespace std; int main() { int a[10][10], b[10][10], s[10][10]; int i,j,row, column; cout <<"Enter size of row:"; cin >> row; cout <<"Enter size of column:"; cin >> column; cout <<"Enter elements of matrix A" << endl; for(i=0;i> a[i][j]; } } cout <<"Enter elements of matrix B" << endl; for(i=0;i> b[i][j]; } } cout << "Difference of A and B" << endl; for(i=0;i
PLleasae convert this in C language, thanks!
...
#include <iostream>
using namespace std;
int main()
{
int a[10][10], b[10][10], s[10][10];
int i,j,row, column;
cout <<"Enter size of row:";
cin >> row;
cout <<"Enter size of column:";
cin >> column;
cout <<"Enter elements of matrix A" << endl;
for(i=0;i<row;i++)
{
for(j=0;j<column;j++)
{
cin >> a[i][j];
}
}
cout <<"Enter elements of matrix B" << endl;
for(i=0;i<row;i++)
{
for(j=0;j<column;j++)
{
cin >> b[i][j];
}
}
cout << "Difference of A and B" << endl;
for(i=0;i<row;i++)
{
for(j=0;j<column;j++)
{
cout << a[i][j] - b[i][j] << " ";
}
cout << endl;
}
getch();
return 0;
}
Step by step
Solved in 3 steps with 1 images