Professional Documents
Culture Documents
Addition of 2x2 Matrices
Addition of 2x2 Matrices
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
STEP
1: START
2: READ A[I][J]
3:FOR(I=0;I<2;I++)
4:FOR(J=0;J<2;J++)
5: ENDFOR
6: ENDFOR
7:EAD B[I][J]
8:FOR(I=0;I<2;I++)
9:FOR(J=0;J<2;J++)
10: ENDFOR
11: ENDFOR
12:FOR(I=0;I<2;I++)
13:FOR(J=0;J<2;J++)
14: C[I][J]=A[I][J]+B[I][J]
15:ENDFOR
16:ENDFOR
17:FOR(I=0;I<2;I++)
18:FOR(J=0;J<2;J++)
19: PRINT C
20: END