Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //a bignum library written in C++, it can (in theory) calculate with 4 billion digit long numbers
- //this is mostly for demonstration purposes, if you need performance, use something like GNU arbitrary precision library
- //Implemented by: http://www.youtube.com/user/thecplusplusguy
- //this might be an older version, I have to check
- //calculate 1000 factorial
- #include <iostream>
- #include "bignum.h"
- int main()
- {
- bignum fact=1;
- for(int i=1;i<=1000;i++)
- fact*=i;
- std::cout << fact << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement