Récursivity.

Récursives functions

See version :

Pas de dépendances

Download :

#include <stdio.h>

int factorielle(int n)
{
    if (n<=1)
        return 1;
    return n*factorielle(n-1);
}

int main()
{
    printf("Facorielle de 5 = %d\n",factorielle(5));
    return 0;
}




Explanations

	No explanations yet.