Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 06-15-2005, 09:04 AM   #1
Beta Member
Join Date: Jun 2005
Posts: 1
Default Perl Help

Im not sure if im on the right thread but will somebody help me with my this problem please...

This is a perl Script prob:

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 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: 48
The result of multiplying the odd elements is: 316008

PLease help.. I need some result before Friday..
Thanks much..
student is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 11:45 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0