Question#2
Write a program that that reads n values in a list and prints the product of the value and the position at which it resides in the list i.e product=L[1]*,product=L[2]*2,and so on.
Note:the list does not change
Example: position: 1 2 3 4 5 value: 5 3 7 1 4 output: 5 6 21 4 20
1
Expert's answer
2011-03-09T10:23:11-0500
Unfortunately, this task cannot be done for free. You can submit all your requirements as an assignment to our control panel set the deadline and our programmers will assist you.
Comments
Leave a comment