Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #include <fstream>
- using namespace std;
- typedef long long ll;
- typedef long double ld;
- #define MOD 1000000007
- #define endl "\n";
- #define pi 3.14159265
- int add(int x, int y){return x+y;}
- int main()
- {
- ios::sync_with_stdio(false);
- cin.tie(0);
- ll t;
- cin>>t;
- while(t--)
- {
- ll a;
- ll f=1;
- cin>>a;
- for(int i=1;i<=a;i++)
- {
- f=f*i;
- }
- cout<<f<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment