Where is bug? (C++)
#include <iostream>
using namespace std;
int main()
{
int howMuch, x;
long double result;
cin >> howMuch;
for (int i = 0; i < howMuch; i++)
{
cin >> x;
result = 1;
for (int j = 1; j <= x; j++)
{
result *= j;
}
cout << result << endl;
}
return 0;
}