Site hosted by Angelfire.com: Build your free website today!

Program 25
C++

 

 

 

 

 

 

 

Using NESTED FOR LOOPS…

 

Create two MOD 8 tables, one for each of the following                                  

1)      Addition and 2) Multiplication

 


(You could use gotoxy if you choose)

Check your textbook pages 333-334

 

This is the appearance

 

 

+

0

1

2

3

4

5

6

7

0

0

1

2

3

4

5

6

7

1

1

2

3

4

5

6

7

0

2

2

3

4

5

6

7

0

1

3

3

4

5

6

7

0

1

2

4

4

5

6

7

0

1

2

3

5

5

6

7

0

1

2

3

4

6

6

7

0

1

2

3

4

5

7

7

0

1

2

3

4

5

6

 

 

 

x

0

1

2

3

4

5

6

7

0

0

0

0

0

0

0

0

0

1

0

1

2

3

4

5

6

7

2

0

2

4

6

0

2

4

6

3

0

3

6

1

4

7

2

5

4

0

4

0

4

0

4

0

4

5

0

5

2

7

4

1

6

3

6

0

6

4

2

0

6

4

2

7

0

7

6

5

4

3

2

1