Created
July 21, 2013 08:09
-
-
Save koji/6047883 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
for my $i (1..100) { | |
if ($i%15 == 0) { | |
print "FizzBuzz\n"; | |
} elsif ($i%5 == 0 ) { | |
print "Buzz\n"; | |
} elsif ($i%3 == 0 ) { | |
print "Fizz\n"; | |
} else { | |
print $i."\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment