17
1
In long multiplication, after multiplying the numbers, you are left with the partial products, in this challenge you will output those partial products.
Because long multiplication is long, to compensate your code will need to be as short as possible.
Examples
34, 53
102, 1700
48, 38
384, 1440
361, 674
1444, 25270, 216600
0, 0
0
1, 8
8
Specifications
- Input / Output may be in any reasonable format such as array, comma-separated string (or any other delimiter that's not a digit), list, function arguments, etc.
- Partial products must be in increasing order.
- If a partial product is
0
, you can choose whether you want to output it or not.
This is code-golf so shortest code in bytes wins!
I'm assuming that the numbers can be strings, right? – Mama Fun Roll – 2015-12-30T01:46:35.587
That 0,0 test case is making it a lot harder. – xnor – 2015-12-30T02:21:15.333
What is the expected outcome for
12, 102
? Most answers seem to return24, 0, 1200
. – Dennis – 2015-12-30T03:00:23.717@Dennis
24, 0, 1200
is fine. I'll specify in the post – Downgoat – 2015-12-30T03:43:02.120