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-04-01T11:08:09-0400
Unfortunately, your question cannot be done for free. Submit your requirements as an assignment to our control panel set the deadline and our experts will assist you.
Comments
Leave a comment