forked from root/public
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
663 B
37 lines
663 B
5 years ago
|
## tabmult
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Write a program that displays a number's multiplication table.
|
||
|
|
||
5 years ago
|
- The parameter will always be a strictly positive number that fits in an `int`. Said number multiplied by 9 will also fit in an `int`.
|
||
5 years ago
|
|
||
![]()
5 years ago
|
### Usage
|
||
5 years ago
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$ go build
|
||
|
student@ubuntu:~/[[ROOT]]/test$ ./test 9
|
||
5 years ago
|
1 x 9 = 9
|
||
|
2 x 9 = 18
|
||
|
3 x 9 = 27
|
||
|
4 x 9 = 36
|
||
|
5 x 9 = 45
|
||
|
6 x 9 = 54
|
||
|
7 x 9 = 63
|
||
|
8 x 9 = 72
|
||
|
9 x 9 = 81
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$ ./test 19
|
||
5 years ago
|
1 x 19 = 19
|
||
|
2 x 19 = 38
|
||
|
3 x 19 = 57
|
||
|
4 x 19 = 76
|
||
|
5 x 19 = 95
|
||
|
6 x 19 = 114
|
||
|
7 x 19 = 133
|
||
|
8 x 19 = 152
|
||
|
9 x 19 = 171
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$ ./test
|
||
5 years ago
|
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/test$
|
||
![]()
5 years ago
|
```
|