01.06.2013 Views

Appel initial : Le premier appel de la fonction.

Appel initial : Le premier appel de la fonction.

Appel initial : Le premier appel de la fonction.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exemple :<br />

Ecrire une <strong>fonction</strong> f qui calcule n!/p! avec n>=0 et p>=0<br />

On désire simplifer le calcul. On calculera dans le cas général n(n-1)(n-2)...(p+1)<br />

Cas A :<br />

Si n ou p sont négatifs nous sommes en présence d'une exception.<br />

Si on a n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!