Commit bd400a05 by Jürgen Hein

kood töötab korrektselt Kodutoo2MassiividLiitmine.c

parent 013b884b
Showing with 3 additions and 3 deletions
/* Kodutöö 2. Variant 4.
/* Kodutöö 2. Variant 4.
......@@ -189,9 +189,9 @@ void VäljastusAlgne(int n, int m, int k, int l, double A[][m], double B[][l])
void MaatriksLiitmine(int CRida, int CVeerg, double A[][CVeerg], double B[][CVeerg], double C[][CVeerg])
{
int j, i;
for(i=0; i<CVeerg; i++)
for(i=0; i<CRida; i++)
{
for(j=0; j<CRida; j++)
for(j=0; j<CVeerg; j++)
{
C[i][j]= A[i][j] + B[i][j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment