You are on page 1of 3

CLARK C.

BELEN
1 BSCS-1

Nested Loop Assessment

1.
a.
Accumulator/Counter: Output:

--> ***
a j **
1 1 ***
2 2
3 3
4 4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
b.
Accumulator/Counter: Output:
a c
--> &
5 4
4 3 &
3 4
2 3
&
1 2
0 4
3
2 &
1
4
3
2 &
1
0
c.
Accumulator/Counter: Output:

num row col magic deductor adder


4 1 1 1 1 1 1 8 9 16
2 7 10 15
2 2 8 2 3
3 6 11 14
3 3 9 3 5
4 5 12 13
4 4 16 4 7
5 5 2 9
1 7
2 10
3 15
4 3
5 6
1 11
2 14
3 4
4 5
5 12
1 13
2
3
4
5

You might also like