Created
July 7, 2017 00:34
-
-
Save jeyziel/8d8f6b3dd7dde561ab70a945c6c86eff to your computer and use it in GitHub Desktop.
multiplicacão
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 | |
function multiplicacao($multiplicador,$multiplicando,$count) | |
{ | |
if ($count >= 1 ) | |
{ | |
echo " $multiplicador x $multiplicando = " . $multiplicador * $multiplicando . "<br>"; | |
return $multiplicador * multiplicacao($multiplicador,$multiplicador*$multiplicando,--$count); | |
} | |
} | |
multiplicacao(3,1,10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment