Created
April 14, 2015 18:30
-
-
Save rafacouto/8cb00076aab4d7d66d59 to your computer and use it in GitHub Desktop.
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
<?php | |
$a = 5; | |
$b = 5; | |
for ($aa = 0; $aa <= $a; $aa++) | |
{ | |
for ($bb = 0; $bb <= $b; $bb++) | |
{ | |
if ($aa == 0 || $bb == 0) | |
{ | |
$v = $aa + $bb; | |
} | |
else | |
{ | |
$v = $aa * $bb; | |
} | |
printf("%5u", ($v . " ")); | |
} | |
print "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment