|
@@ -105,16 +105,14 @@
|
105
|
105
|
<br><br><br><br>
|
106
|
106
|
## `String getLargeMultiplicationTable()`
|
107
|
107
|
* **Description**
|
108
|
|
- * Given one integer, `width`, generate a `String` representation of a multiplication table whose dimensions are `width` by `width`
|
|
108
|
+ * Generate a `String` representation of a multiplication table whose dimensions are `9` by `9`
|
109
|
109
|
|
110
|
110
|
|
111
|
111
|
### Example
|
112
|
112
|
* Sample Script
|
113
|
113
|
|
114
|
114
|
```
|
115
|
|
- // : Given
|
116
|
|
- int n = 3;
|
117
|
|
-
|
|
115
|
+ // : Given
|
118
|
116
|
// : When
|
119
|
117
|
String outcome = Tables.getLargeMultiplicationTable();
|
120
|
118
|
|
|
@@ -127,17 +125,15 @@
|
127
|
125
|
* Sample Output
|
128
|
126
|
|
129
|
127
|
```
|
130
|
|
- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|
131
|
|
- 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
|
132
|
|
- 3 | 6 | 9 | 12 | 15 | 18 | 21 | 24 | 27 | 30 |
|
133
|
|
- 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 |
|
134
|
|
- 5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 |
|
135
|
|
- 6 | 12 | 18 | 24 | 30 | 36 | 42 | 48 | 54 | 60 |
|
136
|
|
- 7 | 14 | 21 | 28 | 35 | 42 | 49 | 56 | 63 | 70 |
|
137
|
|
- 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 |
|
138
|
|
- 9 | 18 | 27 | 36 | 45 | 54 | 63 | 72 | 81 | 90 |
|
139
|
|
- 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 |100 |
|
140
|
|
-
|
|
128
|
+ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
129
|
+ 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 |
|
|
130
|
+ 3 | 6 | 9 | 12 | 15 | 18 | 21 | 24 | 27 |
|
|
131
|
+ 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 |
|
|
132
|
+ 5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 |
|
|
133
|
+ 6 | 12 | 18 | 24 | 30 | 36 | 42 | 48 | 54 |
|
|
134
|
+ 7 | 14 | 21 | 28 | 35 | 42 | 49 | 56 | 63 |
|
|
135
|
+ 8 | 16 | 24 | 32 | 40 | 48 | 56 | 64 | 72 |
|
|
136
|
+ 9 | 18 | 27 | 36 | 45 | 54 | 63 | 72 | 81 |
|
141
|
137
|
```
|
142
|
138
|
|
143
|
139
|
|