#include <stdio.h>

int main() {
    int a, b, c=1, d=10;
    while(c<=d) {
        a=1;
        b=1;
    }
    while(a<=c) {
        b=b*a;
        a++;
    }
    printf("%d! = %d", c,b);
    c=c+1;
}

Embed on website

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