Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int t;
- long long int n,i, sum;
- scanf("%d", &t);
- while(t--){
- sum=1;
- scanf("%lld", &n);
- for(i=2; i<=n; i++){
- sum*=i;
- }
- printf("%lld\n", sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement