Skip to content

Instantly share code, notes, and snippets.

@geta6
Last active December 30, 2015 18:29
Show Gist options
  • Save geta6/7868127 to your computer and use it in GitHub Desktop.
Save geta6/7868127 to your computer and use it in GitHub Desktop.
for (my $i = 1; $i <= 100; $i++) {
my $fb = 0;
if ($i % 3 == 0) {
$fb = 1;
print "fizz";
}
if ($i % 4 == 0) {
$fb = 1;
print "buzz";
}
if ($fb == 0) {
print($i);
}
print("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment