#include <stdio.h>

int main() {
    int a=1;
    int b;
    int fac=1;
    scanf("%d", &b);
    
    while(b>=a){
        fac = fac*a;
        a++;
    } 
    printf("%d",fac); 
    return 0;
}

Embed on website

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