C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
Bartleby Related Questions Icon

Related questions

Question
100%

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;

}

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning