Easy
Function Factory
Write
multiplier(k) that returns a function multiplying its argument by k. Read k and a list; print each number multiplied using the returned function.Input
k, then a line of integers.
Output
One line.
Sample 1
Input
3 1 2 3
Output
3 6 9
Sample 2
Input
0 5 6
Output
0 0
Output appears here