Perl Operators   «Prev  Next»

Perl Increment Operator - Exercise

Using the increment operator

Objective: Write a program that accepts a number from the console and counts to that number using the increment operator.
Use a looping construct when writing this program.
Paste your code in the text area below and click the Submit button when you are finished.