Created
January 10, 2013 16:22
-
-
Save evandhoffman/4503414 to your computer and use it in GitHub Desktop.
This is a challenge?
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/perl | |
for (my $i = 1; $i <= 100 ; $i++) { | |
my $out = ''; | |
if (($i % 3) == 0) { | |
$out .= 'Fizz'; | |
} | |
if (($i % 5) == 0) { | |
$out .= 'Buzz'; | |
} | |
if ($out eq '') { | |
$out = $i; | |
} | |
print "$out\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment