Question #2223

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

Expert's answer

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.
LATEST TUTORIALS
APPROVED BY CLIENTS