fork download
  1.  
  2. #include <bits/stdc++.h>
  3. #include <boost/multiprecision/cpp_int.hpp>
  4. using boost::multiprecision::cpp_int;
  5. using namespace std;
  6.  
  7. cpp_int Factorial(int number)
  8. {
  9. cpp_int num = 1;
  10. for (int i = 1; i <= number; i++)
  11. num = num * i;
  12. return num;
  13. }
  14.  
  15. int main()
  16. {
  17. int number = 100;
  18. cpp_int fact = Factorial(number);
  19. cout << fact << endl;
  20. return 0;
  21. }
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000