#include <stdio.h> int main(){ int m,n,i; long long int sum; while(scanf("%d",&m)!=EOF){ while(m--){ scanf("%d",&n); for(i=1,sum=1;i<n;i++,sum*=i); printf("%lld\n",sum); } } }(•̀ᴗ•́)و
#include <stdio.h> int main(){ int m,n,i; long long int sum; while(scanf("%d",&m)!=EOF){ while(m--){ scanf("%d",&n); for(i=1,sum=1;i<n;i++,sum*=i); printf("%lld\n",sum); } } }(•̀ᴗ•́)و