Discover answers to your most pressing questions at Westonci.ca, the ultimate Q&A platform that connects you with expert solutions. Our platform offers a seamless experience for finding reliable answers from a network of experienced professionals. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

39.20 Programming Assignment #010B

Write a program that reads two lists of integers from input into two arrays and outputs the sum of multiplying the corresponding list items. The program first reads an integer representing the length of each list, followed by two lists of integers.

Ex: If the input is:

3
1 2 3
3 2 1
the program calculates (1 * 3) + (2 * 2) + (3 * 1) and outputs

10
Ex: If the input is:

4
2 3 4 5
1 1 1 1
the program calculates (2 * 1) + (3 * 1) + (4 * 1) + (5 * 1) and outputs

14


Sagot :

Thank you for visiting our platform. We hope you found the answers you were looking for. Come back anytime you need more information. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Your questions are important to us at Westonci.ca. Visit again for expert answers and reliable information.