Write a program to generate the following arithmetic examples.
Hints:
(1) Divide and conquer: what simpler problem do you need to solve?
(2) Consider using strings to build numbers and then convert.
(3) The range iterator may be helpful.
1 * 8 + 1 = 912 * 8 + 2 = 98123 * 8 + 3 = 9871234 * 8 + 4 = 987612345 * 8 + 5 = 98765123456 * 8 + 6 = 9876541234567 * 8 + 7 = 987654312345678 * 8 + 8 = 98765432123456789 * 8 + 9 = 987654321
1 * 9 + 2 = 1112 * 9 + 3 = 111123 * 9 + 4 = 11111234 * 9 + 5 = 1111112345 * 9 + 6 = 111111123456 * 9 + 7 = 11111111234567 * 9 + 8 = 1111111112345678 * 9 + 9 = 111111111123456789 * 9 + 10 = 1111111111
9 * 9 + 7 = 8898 * 9 + 6 = 888987 * 9 + 5 = 88889876 * 9 + 4 = 8888898765 * 9 + 3 = 888888987654 * 9 + 2 = 88888889876543 * 9 + 1 = 8888888898765432 * 9 + 0 = 888888888
1 * 1 = 111 * 11 = 121111 * 111 = 123211111 * 1111 = 123432111111 * 11111 = 123454321111111 * 111111 = 123456543211111111 * 1111111 = 123456765432111111111 * 11111111 = 123456787654321111111111 * 111111111 = 12345678987654321
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.