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

Paul

New member
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?
 
Back
Top