Advertisement
ismail5g

Subeen Problem

Feb 25th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.   int t;
  4.   long long int n,i, sum;
  5.   scanf("%d", &t);
  6.   while(t--){
  7.     sum=1;
  8.     scanf("%lld", &n);
  9.     for(i=2; i<=n; i++){
  10.       sum*=i;
  11.     }
  12.     printf("%lld\n", sum);
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement