Last active
December 10, 2015 13:29
-
-
Save bbrothers/4441191 to your computer and use it in GitHub Desktop.
Test Question 3
This file contains hidden or 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
<?php | |
echo '<pre>'; | |
for($i = 100;$i>=0;$i--){ | |
print $i; | |
if($i % 2 === 0) { | |
print " is even"; | |
if($i % 12 === 0) printf(" and is %d dozen",$i/12); | |
} | |
else print " is odd"; | |
print ".\n"; | |
} | |
echo '</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment