Guest User

Untitled

a guest
Jul 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use strict;
  4.  
  5. for(my $i=1; $i<101; $i++){
  6. print "$i\n";
  7. print "Fizz" if($i%3==0);
  8. print "Buzz" if($i%5==0);
  9. print ".\n" if($i%3==0 or $i%5==0);
  10. }
Add Comment
Please, Sign In to add comment