Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Your Message

Click here to log in

In what corner do we have Search box?

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 01-19-2013, 10:20 AM
    Paul

    Write a Perl program that adds all of the odd numbers between 0 and 1,000 and prints the result to the screen?

    Programming using Perl, attempting to learn and understand the basics but struggling, appreciate the help,thanks! Thought about maybe using an if statement to check if the number is odd something like this maybe : if($i % 2 == 1) but not sure where to go from there or even if that is where I should be starting?

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •