Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- float nbre, result;
- printf("Entrez le nombre dont vous voulez connaitre la factorielle : ");
- fflush(stdin);
- scanf("%f",&nbre);
- while (nbre >= 1) // PROBLEME
- {
- result = result * nbre; // HYPER PUTAIN DE GROS PROBLEME
- nbre = nbre - 1;
- printf("%f\n %f\n", result, nbre);
- }
- printf("La valeur de la factorielle de %f", result);
- }
Add Comment
Please, Sign In to add comment