Wrong submission, pls help

#include<stdio.h>
int main(){
long double i,j,k;
scanf("%Lf",&i);
while(i>0){
scanf("%Lf",&j);
k=1;
while(j>0){
k=k*j;
j–;
}
printf("%0.0Lf\n",k);
i–;
}
return 0;
}

can u tell me which question it is

Assuming you’re trying to solve this problem, note that factorial of 100 will not fit even in long double. You should either use Arrays or use Big Integer class (available in Java, Python).

Resource(s):

1 Like

small factorials , beginners practice

thanks