Guest User

Untitled

a guest
Jan 4th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #include "BigInt.h"
  2.  
  3. int main(){
  4. printf("%d\n", compare(divi(make("8965689588325"), make("25352465235")), make("353")));
  5. printf("%d\n", compare(sum(make("234435234264270467"), make("35364572624621358918578213574528")), make("35364572624621593353812477844995")));
  6. printf("%d\n", compare(diff(make("8965689588325352465235"), make("8965689588325")), make("8965689579359662876910")));
  7. printf("%d\n", compare(mult(make("25352465235"), make("8965689588325")), make("227302333595811024381375")));
  8. BigInt* ans = divi(make("4385920537982357923084572043"), make("45765893742"));
  9. convert(&ans, 10);
  10. bigint_printf(ans);
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment