Only t-1 output is printing out of t test cases.Why??

#include<stdio.h>

#include<stdlib.h>

int main()

{

int i,t,n,f,j;

scanf("%d\n",&t);

for(i=0;i<t;i++)

{

	scanf("%d\n",&n);

	f=1;

	for(j=1;j<=n;j++)

	{

		f=f*j;

	}

	printf("%d\n",f);

	
}

return 0;

}

//prog. to find factorial of small no.

It is giving t correct outputs for small numbers. See this: link

BTW you are getting Wrong Ans because of maximum limit of int. Even if you use unsigned long long int, you will not be able to calculate factorial(100). This is because of overflow. i.e, size of the variable is exceeding the maximum permitted size.

Follow this link for calculating the factorial of numbers >=20 link