<html><body><pre><script> document.write("\nmultiplier en recursif 3 * 5 \n"); /* Pseuso code : fonction mutiplier(opg, opd) si opd == 1 alors retourner opg; sinon retourner (multiplier(opg, opd-1) + opg) fin si fin fonction */ function multiplier(opg, opd) { console.log('mulitplier '+opg+'*'+opd); if(opd == 1) { return opg; } else { return (multiplier(opg, opd -1) + opg); } } document.write(multiplier(3,5)); </script></pre></body></html>