#include <stdio.h>

int main() {
    int a=20;
    int b;
    long c=1;     //con il long posso calcolare i fattoriali con numeri maggiori

    for(b=1; b<=a; b++) {
        printf("-------------\n");
        printf("c = %ld\n", c);
        printf("b = %d\n", b);
        c=c*b;
        printf("c = c * b = %ld\n", c);
    }
}

Embed on website

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