Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: How to Find even numbers using a do…while loop

Perl: How to Find even numbers using  a do...while loop

use warnings;
use strict;
my $x = 0;
# Find even numbers between 0 and 1000
do {
    next if ($x % 2);
    print $x, "n";
} while ($x++ < 100);

Users who found this page were searching for:

  • how to find even no. in java using do while loop
  • perl for loop skip off numbers
  • finding even no using foreach in perl
  • using a while loop using even numbers python 3
  • python 3 exit module
  • print even and odd numbers in perl using while loop
  • to print odd numbers from 1 to 100 in c using while loop
  • even number and odd number while in python
  • perl skip even numbers
  • Perl program for fibonacci series using while loop

No comments yet.

Leave a Comment