[DFW.pm] FizzBuzz Assignment

Van Der Ploeg, Bob Bob.Vanderploeg at activenetwork.com
Wed Sep 10 22:00:10 PDT 2014


Here is my homework assignment.   I know its wordy but it seems to work! :)

#!/usr/bin/perl

for($x=1;$x<=100;$x++){
if($x%3==0 && $x%5==0){print "FIZZBUZZ "}
elsif ($x%3==0){print "fizz "}
elsif($x%5==0){print "buzz "}
else{print "$x ";}
}


http://www.facebook.com/robert.vanderploeg
Deuteronomy 30:19 - Choose Life!
Bob Van Der Ploeg, Professional Services Consultant
Active Network | Faith
Office: 214.271.9698<tel:214.271.9698>
Mobile: 407-432-6665
bob.vanderploeg at activenetwork.com<mailto:bob.vanderploeg at activenetwork.com>

My ACTIVE is...
Faith, Family, Swimming
What's Your Active?
http://www.FellowshipOne.com<http://www.fellowshipone.com/>
http://www.ActiveNetwork.com<http://www.activenetwork.com/>
http://www.Active.com<http://www.active.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/dfw-pm/attachments/20140911/c57435f1/attachment.html>


More information about the Dfw-pm mailing list