#include <iostream>
using namespace std;
int main() {
     int t;
    cin>>t;
    if(t>=1 && t<=100)
    while(t--)
    {
        
        int n,fac,count;
        cin>>n;
        if(n>=1 && n<=100)
        {
        fac=1;
        for(int i=n;i>0;i--)
        {
            fac=fac*i;
        }
        cout<<fac<<"\n";
        }
    }
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: