#include <stdio.h>
int main(void) {
int n,i=1,fact=1;
while (i<=n){
fact=fact*i;
i++;
}
printf("factorial of a number=%d\n",fact
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgbixpPTEsZmFjdD0xOwogICAgcHJpbnRmKCJlbnRlciBhIGludGVnZXI6Iik7CiAgICBzY2FuZigiJWQiLCZuKTsKICAgIHdoaWxlIChpPD1uKXsKICAgIGZhY3Q9ZmFjdCppOwogICAgaSsrOwogICAgfQogICAgcHJpbnRmKCJmYWN0b3JpYWwgb2YgYSBudW1iZXI9JWRcbiIsZmFjdCk7CglyZXR1cm4gMDsKfQo=