#include <stdio.h>

int my_compute_factorial_it(int nb)
{
    int result = 1;
    int i = 0;

    if (nb < 0 || nb > 12) {
        return 0;
    }
    for (i = 0; i < nb; i++) {
        result *= (i + 1);
    }
    return result;
}

int main()
{
    printf("%d\n", my_compute_factorial_it(13));
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: