siple Perl
$10-15 USD
Maksettu toimituksen yhteydessä
Very frustrated with the homework need help Write a program that prompts a user to input 10 integer values. Store these values in a list that will have these 10 elements. Add all even elements together (that is, they have subscript values of 0, 2, 4, 6, 8) and multiply the odd elements together (that is, they have subscript values of 1, 3, 5, 7, 9). For example, if the list were (11, 34, 9, 2, 8, 3, 21, 5, 19, 4), then the following would print to the screen: The list of numbers used is: 11 34 9 2 8 3 21 5 19 4 The result of adding the even elements is: 68 The result of multiplying the odd elements is: 4080
## Deliverables
Need the code in a text file.
## Platform
PERL
Projektin tunnus: #3831135