Question: Python or C You have 2 lists of positive integers. Write a program which multiplies corresponding elements in these lists. Input: Your program should read
Python or C
You have 2 lists of positive integers. Write a program which multiplies corresponding elements in these lists.
Input:
Your program should read lines from standard input. Each line contains two space-delimited lists. The lists are separated with a pipe char (|). Both lists have the same length, in range [1, 10]. Each element in the lists is a number in range [0, 99].
Output:
Print the multiplied list.
Test 1
Test InputDownload Test 1 Input
9 0 6 | 15 14 9
Expected OutputDownload Test 1 Output
135 0 54
Test 2
Test InputDownload Test 2 Input
13 4 15 1 15 5 | 1 4 15 14 8 2
Expected OutputDownload Test 2 Output
13 16 225 14 120 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
