All pastes #556260 Raw Edit

macierz1

public cpp v1 · immutable
·published 2007-06-10 14:19 UTC
rendered paste body
#include <iostream>#include <conio.h>#include <time.h>using namespace std;int main(){    int a[3][3];    int b[3][3];    int c[3][3];    for (int z = 0; z < 3; z++)    {        //wiersze        for (int y = 0; y < 3; y++)        {            //kolumny            cin>>a[z][y];        }        cout<<endl;    }        for (int z = 0; z < 3; z++)    {        //wiersze        for (int y = 0; y < 3; y++)        {            //kolumny            cin>>b[z][y];        }        cout<<endl;    }        for (int z = 0; z < 3; z++)    {        //wiersze        for (int y = 0; y < 3; y++)        {            //kolumny            c[z][y] = a[z][y] + b[z][y];        }    }    for (int z = 0; z < 3; z++)    {        printf("%4d%4d%4d", c[z][0],c[z][1],c[z][2]);        cout<<endl;    }        getch();    return(0);    }