int x, num, prod, x2, num2, prod2, x3, num3, prod3, a, b, c, t, t2, t3, t4,
t5, y, p;
char ans;
{
cout << "What is your number? ";
cin >> num;
prod = 1;
for (x = num; x >= 1; x--)
prod = prod * x;
cout << "The factorial of the number is " << prod;
}
All the other ints are for my entire program lol