C++ FCTRL2 Wrong answer?

#include
using namespace std;
int main(void)
{
int i,n,t;
cin>>t;
if(t>=1&&t<=100)
{while(t–)
{
long double fact=1;
cin>>n;
if(n>=1&&n<=100)
{for(i=n;i>=1;i–)
{
fact=fact*i;
}
}
cout<<fact<<"\n";
}
}
return 0;
}

//