Mathc complexes/a125
Apparence
Installer et compiler ce fichier dans votre répertoire de travail.
c00e.c |
|---|
/* ------------------------------------ */
/* Save as : c00e.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
int main(void)
{
int n = 0;
clrscrn();
do{ printf(" %.2d! = %d\n", n, factorial(n));
}while(n++ <12);
printf("\n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
12! est la valeur maximale pour cette fonction: (Débordement)
Exemple de sortie écran :
00! = 1
01! = 1
02! = 2
03! = 6
04! = 24
05! = 120
06! = 720
07! = 5040
08! = 40320
09! = 362880
10! = 3628800
11! = 39916800
12! = 479001600
Press return to continue.