Assignment 12 — Nesting

Due Friday, September 28


Program digit_box.py

Two possible program runs

Type an integer: 3

1 2 3

2 4 6

3 6 9

Type an integer: 12

1 2 3 4 5 6 7 8 9 0 1 2

2 4 6 8 0 2 4 6 8 0 2 4

3 6 9 2 5 8 1 4 7 0 3 6

4 8 2 6 0 4 8 2 6 0 4 8

5 0 5 0 5 0 5 0 5 0 5 0

6 2 8 4 0 6 2 8 4 0 6 2

7 4 1 8 5 2 9 6 3 0 7 4

8 6 4 2 0 8 6 4 2 0 8 6

9 8 7 6 5 4 3 2 1 0 9 8

0 0 0 0 0 0 0 0 0 0 0 0

1 2 3 4 5 6 7 8 9 0 1 2

2 4 6 8 0 2 4 6 8 0 2 4

Observations